Skip to content

ProfilePageVmImplTests

Namespace: SlottyMedia.Tests.Viewmodel

Unit tests for the class.

public class ProfilePageVmImplTests

Inheritance ObjectProfilePageVmImplTests

Constructors

ProfilePageVmImplTests()

public ProfilePageVmImplTests()

Methods

SetUp()

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

public void SetUp()

Initialize_LoadsUserInfoAndPosts()

Tests that the Initialize method loads user information and posts correctly.

public Task Initialize_LoadsUserInfoAndPosts()

Returns

Task

LoadPosts_LoadsPostsForUser()

Tests that the LoadPosts method loads posts for the user correctly.

public Task LoadPosts_LoadsPostsForUser()

Returns

Task

FollowThisUser_FollowsUser()

Tests that the FollowThisUser method follows the user correctly.

public Task FollowThisUser_FollowsUser()

Returns

Task

UnfollowThisUser_UnfollowsUser()

Tests that the UnfollowThisUser method unfollows the user correctly.

public Task UnfollowThisUser_UnfollowsUser()

Returns

Task