public User GetUserByUsername(string username)
 {
     return(_context
            .Users
            .Where(UserSpecs.GetByUsername(username))
            .FirstOrDefault());
 }
Exemple #2
0
        public void GetByUsernameShoudNotReturnValue()
        {
            var user = _users
                       .AsQueryable()
                       .Where(UserSpecs.GetByUsername("filipenonato234234243"))
                       .FirstOrDefault();

            Assert.AreEqual(null, user);
        }
Exemple #3
0
        public void GetByUsernameShouldNotReturnValue()
        {
            var user = _users
                       .AsQueryable()
                       .Where(UserSpecs.GetByUsername("andrebaltieri258794"))
                       .FirstOrDefault();

            Assert.AreEqual(null, user);
        }
Exemple #4
0
        public void GetByUserNameShouldNotReturnValue()
        {
            var user = _users
                       .AsQueryable()
                       .Where(UserSpecs.GetByUsername("neuber.coelhoZZZZZZZ"))
                       .FirstOrDefault();

            Assert.AreEqual(null, user);
        }
        public void GetByUsernameShouldNotReturnValue()
        {
            var user = _users.AsQueryable().Where(UserSpecs.GetByUsername("jhonesgoncalves56456")).FirstOrDefault();

            Assert.AreEqual(null, user);
        }