public void ShouldReturnStudentWhenDocumentExists() { var exp = StudentQueries.GetStudentInfo("11111111111"); var studn = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreNotEqual(null, studn); }
public void ShouldReturnNullWhenDocumentNotExists() { var exp = StudentQueries.GetStudentInfo("12345678912"); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreEqual(null, student); }
public void TesteQuerieEstudent1() { var exp = StudentQueries.GetStudentInfo("11111111111"); var st = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreNotEqual(null, st); }
public void ShouldReturnStudentWhenDocumentNotExists() { var exp = StudentQueries.GetStudentInfo("11111111111"); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.IsInstanceOfType(student, typeof(Student)); }
public void ShouldReturnNotNullWhenDocumentNotExists() { var exp = StudentQueries.GetStudentInfo("11111111115"); var studn = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.IsNotNull(studn); }
public void DeveRetornarNuloQuandoDocumentoNaoExistir() { var exp = StudentQueries.GetStudentInfo("12345678911"); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreEqual(null, student); }
public void DeveRetornarEstudanteQuandoDocumentoExistir() { var exp = StudentQueries.GetStudentInfo("11111111111"); var student = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.AreNotEqual(null, student); }
public void ShouldReturnErrorWhenDocumentNotExists() { var expression = StudentQueries.GetStudentInfo("11111122233"); var student = _students.AsQueryable().Where(expression).FirstOrDefault(); Assert.AreEqual(null, student); }
public void DeveRetornarEstudanteQuandoDocumentoExiste() { var exp = StudentQueries.GetStudentInfo("11122233341"); var res = _students.AsQueryable().Where(exp).FirstOrDefault(); Assert.IsNotNull(res); }
public void ShouldReturnNullWhenDocumentDoesNotExists() { var query = StudentQueries.GetStudentInfo("048904940"); var student = _StudentRepository.GetStudents().AsQueryable().Where(query).FirstOrDefault(); Assert.AreEqual(null, student); }
public void ShouldReturnStudentWhenDocumentExists() { var existentDoc = _StudentRepository.GetStudents()[0].Document.Number; var query = StudentQueries.GetStudentInfo(existentDoc); var student = _StudentRepository.GetStudents().AsQueryable().Where(query).FirstOrDefault(); Assert.AreNotEqual(null, student); }
public void ShouldReturnNullWhenDocumentNotExists() { var exp = StudentQueries.GetStudentInfo("12345678911"); var studn = _students.AsQueryable().Where(exp).FirstOrDefault(); }