Beispiel #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 Alumno GetAlumnoByMatricula(String Matricula)
        {
            AlumnoDAO alumnoDAO = new AlumnoDAO();

            return(alumnoDAO.GetAlumnoByMatricula(Matricula));
        }