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);
        }
Esempio n. 2
0
 public IActionResult Index(int id) => View(new UserViewModel {
     User         = userRepository.Get(id),
     FriendStatus = friendManager.GetStatus(id)
 });