Beispiel #1
0
 public User GetByUserName(string userName)
 {
     return(_context
            .Users
            .Where(UserSpecs.GetByUserName(userName))
            .FirstOrDefault());
 }
Beispiel #2
0
        public void GetByUserNameDontShouldReturnValue()
        {
            var user = _users
                       .AsQueryable()
                       .Where(UserSpecs.GetByUserName("vandersonpereira1234"))
                       .FirstOrDefault();

            Assert.AreEqual(null, user);
        }