示例#1
0
 public void Dispose()
 {
     Tutor.DeleteAll();
     Client.DeleteAll();
     Appointment.DeleteAll();
     Specialty.DeleteAll();
 }
示例#2
0
        public void DeleteAll_DeletesAllTutorsFromDb_TutorList()
        {
            Tutor newTutor = new Tutor("Sean", "Miller", "*****@*****.**", "1234567890", 1, true, "Weekends", 25.00);

            newTutor.Save();
            Tutor.DeleteAll();
            List <Tutor> expectedList = new List <Tutor> {
            };
            List <Tutor> actualList   = Tutor.GetAll();

            CollectionAssert.AreEqual(expectedList, actualList);
        }
示例#3
0
 public ActionResult DeleteAllTutors()
 {
     Tutor.DeleteAll();
     return(RedirectToAction("Tutors", "Home"));
 }