public async Task Request() { await InitAsync(); int id = friendManager.Request(friendId); Assert.NotEqual(0, id); var status = friendManager.GetStatus(friendId); Assert.Equal(FriendStatus.RequestSent, status); }
public IActionResult Index(int id) => View(new UserViewModel { User = userRepository.Get(id), FriendStatus = friendManager.GetStatus(id) });