Skip to content

SpacesCardVmImplTests

Namespace: SlottyMedia.Tests.Viewmodel

Tests for the class.

public class SpacesCardVmImplTests

Inheritance ObjectSpacesCardVmImplTests

Constructors

SpacesCardVmImplTests()

public SpacesCardVmImplTests()

Methods

SetUp()

Sets up the test environment before each test. Initializes the mocks and the view model instance.

public void SetUp()

Fetch_ShouldPopulateTrendingAndRecentSpaces()

Tests that the Fetch method populates the TrendingSpaces and RecentSpaces properties.

public Task Fetch_ShouldPopulateTrendingAndRecentSpaces()

Returns

Task
A task representing the asynchronous operation.

Fetch_ShouldHandleExceptionGracefully()

Tests that the Fetch method handles exceptions gracefully by ensuring the TrendingSpaces and RecentSpaces properties are empty when an exception occurs.

public Task Fetch_ShouldHandleExceptionGracefully()

Returns

Task
A task representing the asynchronous operation.

DetermineTrendingSpaces_ShouldPopulateTrendingSpaces()

Tests that the Fetch method populates the TrendingSpaces property.

public Task DetermineTrendingSpaces_ShouldPopulateTrendingSpaces()

Returns

Task
A task representing the asynchronous operation.

DetermineRecentSpaces_ShouldPopulateRecentSpaces()

Tests that the Fetch method populates the RecentSpaces property.

public Task DetermineRecentSpaces_ShouldPopulateRecentSpaces()

Returns

Task
A task representing the asynchronous operation.