Exemplo n.º 1
0
        public void AddTest(int id, string name, string surname, string day, string month, string year)
        {
            daoFactory    = new StudentDAOFactory();
            studentDaoXml = daoFactory.CreateStudentDAOXml();
            string dateString = day + "/" + month + "/" + year;

            Student student         = new Student(id, name, surname, DateUtilities.StringToDateTimeES(dateString));
            Student insertedStudent = studentDaoXml.Add(student);

            Assert.IsTrue(student.Equals(insertedStudent));
        }
Exemplo n.º 2
0
 private void InitializeStudentDAOs()
 {
     studentDAOTxt  = studentDAOFactory.CreateStudentDAOTxt();
     studentDAOXml  = studentDAOFactory.CreateStudentDAOXml();
     studentDAOJson = studentDAOFactory.CreateStudentDAOJson();
 }