示例#1
0
        public void ShouldReturnStudentWhenDocumentExists()
        {
            var exp   = StudentQueries.GetStudentInfo("11111111111");
            var studn = _students.AsQueryable().Where(exp).FirstOrDefault();

            Assert.AreNotEqual(null, studn);
        }
示例#2
0
        public void ShouldReturnNullWhenDocumentNotExists()
        {
            var exp     = StudentQueries.GetStudentInfo("12345678912");
            var student = _students.AsQueryable().Where(exp).FirstOrDefault();

            Assert.AreEqual(null, student);
        }
示例#3
0
        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);
        }
示例#6
0
        public void DeveRetornarNuloQuandoDocumentoNaoExistir()
        {
            var exp     = StudentQueries.GetStudentInfo("12345678911");
            var student = _students.AsQueryable().Where(exp).FirstOrDefault();

            Assert.AreEqual(null, student);
        }
示例#7
0
        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);
        }
示例#9
0
        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();
 }