public User GetByUserName(string userName) { return(_context .Users .Where(UserSpecs.GetByUserName(userName)) .FirstOrDefault()); }
public void GetByUserNameDontShouldReturnValue() { var user = _users .AsQueryable() .Where(UserSpecs.GetByUserName("vandersonpereira1234")) .FirstOrDefault(); Assert.AreEqual(null, user); }