public User GetUserByUsername(string username) { return(_context .Users .Where(UserSpecs.GetByUsername(username)) .FirstOrDefault()); }
public void GetByUsernameShoudNotReturnValue() { var user = _users .AsQueryable() .Where(UserSpecs.GetByUsername("filipenonato234234243")) .FirstOrDefault(); Assert.AreEqual(null, user); }
public void GetByUsernameShouldNotReturnValue() { var user = _users .AsQueryable() .Where(UserSpecs.GetByUsername("andrebaltieri258794")) .FirstOrDefault(); Assert.AreEqual(null, user); }
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); }