Beispiel #1
0
        private async Task GetUserData()
        {
            loggedUser = await instaApi.GetLoggedInUserAsync();

            ShowLoggedInUsername();
            await LoadFollowersList();
        }
Beispiel #2
0
        public async Task GetLoogedInUserAsync_Returns_Valid_User()
        {
            var currentUser = CreateReturnResultCurrentUser();

            instaApi.Setup(x => x.GetCurrentUserAsync()).ReturnsAsync(currentUser);
            mapper.Setup(m => m.Map <User>(currentUser.Value)).Returns(new User
            {
                UserId   = userId,
                UserName = userName,
                Private  = false
            }
                                                                       );

            var result = await subject.GetLoggedInUserAsync();

            AssertUserAreExpected(result);
        }