ProfilePageVmImplTests
Namespace: SlottyMedia.Tests.Viewmodel
Unit tests for the class.
public class ProfilePageVmImplTests
Inheritance Object → ProfilePageVmImplTests
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
LoadPosts_LoadsPostsForUser()
Tests that the LoadPosts method loads posts for the user correctly.
public Task LoadPosts_LoadsPostsForUser()
Returns
FollowThisUser_FollowsUser()
Tests that the FollowThisUser method follows the user correctly.
public Task FollowThisUser_FollowsUser()
Returns
UnfollowThisUser_UnfollowsUser()
Tests that the UnfollowThisUser method unfollows the user correctly.
public Task UnfollowThisUser_UnfollowsUser()