示例#1
0
        public async Task GetApprovedFriends_WhenCalled_ReturnListOfApprovedFriends()
        {
            _currentUser.SentFriendRequests = new List <Friend>()
            {
                _approvedfriend
            };

            _userService.Setup(us => us.GetUserWithFriendsAsync(null)).ReturnsAsync(
                _currentUser
                );

            var result = await _friendService.GetApprovedFriends();

            Assert.That(result.Count(), Is.EqualTo(1));
        }