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

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

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

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

            Assert.AreEqual(null, user);
        }