public void PostAlumnoTest()
        {
            AlumnoAPIController controller   = new AlumnoAPIController();
            IHttpActionResult   actionResult = controller.PostAlumno(new Alumno {
                Nombre = "Ferran", Apellidos = "Ferrer", Dni = "2234234Z"
            });

            var contentResult = actionResult as CreatedAtRouteNegotiatedContentResult <Alumno>;

            Assert.IsNotNull(actionResult);
            Assert.IsTrue(contentResult.RouteName == "DefaultApi");
        }
        public void DeleteAlumnoTest()
        {
            AlumnoAPIController controller   = new AlumnoAPIController();
            IHttpActionResult   actionResult = controller.PostAlumno(new Alumno {
                Nombre = "Ferran1", Apellidos = "Ferrer", Dni = "2234234Z"
            });
            var contentResult = actionResult as CreatedAtRouteNegotiatedContentResult <Alumno>;

            IHttpActionResult actionDeleteResult = controller.DeleteAlumno(contentResult.Content.Id);
            var contentDeleteResult = actionDeleteResult as OkNegotiatedContentResult <Alumno>;

            Assert.IsNotNull(contentDeleteResult);
            Assert.IsNotNull(contentDeleteResult.Content);
        }