public void AddTest(int id, string name, string surname, string day, string month, string year) { daoFactory = new StudentDAOFactory(); studentDaoJson = daoFactory.CreateStudentDAOJson(); string dateString = day + "/" + month + "/" + year; Student student = new Student(id, name, surname, DateUtilities.StringToDateTimeES(dateString)); Student insertedStudent = studentDaoJson.Add(student); Assert.IsTrue(student.Equals(insertedStudent)); }
private void InitializeStudentDAOs() { studentDAOTxt = studentDAOFactory.CreateStudentDAOTxt(); studentDAOXml = studentDAOFactory.CreateStudentDAOXml(); studentDAOJson = studentDAOFactory.CreateStudentDAOJson(); }