public void ShouldReturnNullWhenDocumentNotExists() { var exp = StudentQueries.GetStudent("99999999999"); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreEqual(null, student); }
public void ShouldReturnStudentWhenDocumentsExists() { var exp = StudentQueries.GetStudent("11111111111"); var studn = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreNotEqual(null, studn); }
public void RetornaUsuarioQueExistam() { var exp = StudentQueries.GetStudent("656646564"); var stud = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreNotEqual(null, stud); }
public void ShouldReturnNullWhenDocumentNotExists() { var exp = StudentQueries.GetStudent("12345678910"); var studn = _student.AsQueryable().Where(exp).FirstOrDefault(); Assert.Null(studn); }
public void ShouldReturnStudentWhenDocumentExists() { var exp = StudentQueries.GetStudent(FakeStudentRepository.FakeCpf); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreNotEqual(null, student); }
public void ErroWhenDocExists() { var exp = StudentQueries.GetStudent("12345679800"); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreEqual(null, student); }
public void ShouldReturnStudentWhenDocumentExists() { var expression = StudentQueries.GetStudent("41881825043"); var student = _students.AsQueryable().Where(expression).FirstOrDefault(); Assert.NotNull(student); }
public void ShouldReturnNullWhenDocumentNotExists() { var expression = StudentQueries.GetStudent("12345678912"); var student = _students.AsQueryable().Where(expression).FirstOrDefault(); Assert.Null(student); }
public void TestQueryStudent() { var studentRepository = new FakeStudentRepository(); var expr = StudentQueries.GetStudent("34843436801"); var result = studentRepository.GetStudents(expr); var expected = 1; var actual = result.Count(); Assert.AreEqual(expected, actual); }