public void Dispose() { Tutor.DeleteAll(); Client.DeleteAll(); Appointment.DeleteAll(); Specialty.DeleteAll(); }
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); }
public ActionResult DeleteAllTutors() { Tutor.DeleteAll(); return(RedirectToAction("Tutors", "Home")); }