示例#1
0
        public void AddTest()
        {
            var student = new Student();

            StudentDao.Add(student);
            Assert.Fail();
        }
示例#2
0
        public void Add(string Name, string Surname, DateTime DateofBirth, string typo)
        {
            Student student = new Student();

            student.Name        = Name;
            student.Surname     = Surname;
            student.DateofBirth = DateofBirth.ToString();
            StudentDao studenCreator = FactoryProvider.GetFactory(typo).Creator(typo);

            studenCreator.Add(student);
        }