Ejemplo n.º 1
0
        public void EditarEvaluarEstudiante()
        {
            var controller = new RetroalimentacionController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();

            EVALUACION obj = new EVALUACION {
                Id = 1, Observacion = "Prueba", Recomendable = true, HorasLaboradas = 12
            };
            var response = controller.EditarEvaluarEstudiante(obj);

            Assert.IsTrue(response.IsSuccessStatusCode);
        }
Ejemplo n.º 2
0
        public void solicitarEstudiantes()
        {
            var controller = new RetroalimentacionController();

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();

            objGeneral obj = new objGeneral {
                opcionInt = 1, opcionInt2 = 1
            };

            var response = controller.solicitarEstudiantes(obj);

            Assert.IsTrue(response.IsSuccessStatusCode);
            Assert.IsNotNull(response.Content);
        }