Пример #1
0
        public async Task Authenticate_ValidUserNameAndPassword()
        {
            User user = await userRepository.AuthenticateUser(new LoginModel { UserName = "******", Password = "******" });

            Assert.IsTrue(user.UserId == 1);
            Assert.AreEqual(1, user.UserId);
        }
        public async Task AuthenticateUser()
        {
            User entity = await _userDbOps.AuthenticateUser(new LoginModel { UserName = "******", Password = "******" });

            Assert.NotNull(entity);
        }