Skip to content

PostVmImplTests

Namespace: SlottyMedia.Tests.Viewmodel

Unit tests for the PostVmImpl class.

public class PostVmImplTests

Inheritance ObjectPostVmImplTests

Constructors

PostVmImplTests()

public PostVmImplTests()

Methods

SetUp()

Sets up the test environment before each test.

public void SetUp()

Initialize_LoadsAllPostRelatedInformation()

Tests that Initialize method loads all post-related information.

public Task Initialize_LoadsAllPostRelatedInformation()

Returns

Task

LikeThisPost_WhenPostNotLiked_ShouldLikePost()

Tests that LikePost method adds a like when the post was not previously liked.

public Task LikeThisPost_WhenPostNotLiked_ShouldLikePost()

Returns

Task

LikeThisPost_WhenPostLiked_ShouldUnlikePost()

Tests that LikePost method removes a like when the post was previously liked.

public Task LikeThisPost_WhenPostLiked_ShouldUnlikePost()

Returns

Task