Exemple #1
0
        public void GetAlumnoTest()
        {
            AlumnoesController  controller = new AlumnoesController();
            IQueryable <Alumno> alumnos    = controller.GetAlumno();

            Assert.IsTrue(alumnos.Count <Alumno>() > 0);
        }
Exemple #2
0
        public void GetAlumnoTest1()
        {
            AlumnoesController controller   = new AlumnoesController();
            IHttpActionResult  actionResult = controller.GetAlumno(1);

            var contenResult = actionResult as OkNegotiatedContentResult <Alumno>;

            Assert.IsNotNull(contenResult);
            Assert.IsNotNull(contenResult.Content);
            Assert.IsNotNull(contenResult.Content.Id);
        }