コード例 #1
0
        public async void VerifyUserIsAuthenticated()
        {
            var user = _mapper.Map<Entities.User>(userViewModel);

            _user.Setup(x => x.Authenticate(It.IsAny<string>(), It.IsAny<string>())).ReturnsAsync(user);

            var authenticate = await _userApplication.Authenticate(loginViewModel.Login, loginViewModel.Password);

            user.ToExpectedObject().ShouldMatch(authenticate);
        }