Example #1
0
        public void Retornar_nulo_se_o_documento_nao_existir()
        {
            var expression = StudentQueries.GetStudentByDocument("1234567891112");
            var student    = _students.AsQueryable().Where(expression).FirstOrDefault();

            Assert.AreEqual(null, student);
        }
Example #2
0
        public void Retornar_aluno_se_o_documento_existir_e_for_igual_ao_informado()
        {
            var expression = StudentQueries.GetStudentByDocument("1234567891112");
            var student    = _students.AsQueryable().Where(expression).FirstOrDefault();

            Assert.AreNotEqual(null, student);
        }
        public void Should_Return_Student_When_Document_Exists()
        {
            var expression = StudentQueries.GetStudentByDocument("11111111111");
            var student    = this._students.AsQueryable().Where(expression).FirstOrDefault();

            Assert.AreNotEqual(null, student);
        }