Пример #1
0
        public void AddAlumnoTest()
        {
            AlumnoDAO alumnoDAO = new AlumnoDAO();
            Alumno    alumno    = new Alumno("S17012959", "1", "*****@*****.**", "5", "David Bárcenas Duran", "Ingeniería de Software", "No Asignado", "Visible");

            if (alumnoDAO.GetAlumnoByMatricula(alumno.Matricula) != null)
            {
                alumnoDAO.DeleteAlumnoByMatricula(alumno.Matricula);
            }
            Assert.AreEqual(AddResult.Success, alumnoDAO.AddAlumno(alumno));
        }
        public OperationResult DeleteAlumno(String Matricula)
        {
            AlumnoDAO alumnoDAO = new AlumnoDAO();

            return((OperationResult)alumnoDAO.DeleteAlumnoByMatricula(Matricula));
        }