public void DeleteAll_DeletesAllSpecialitiesFromDatabase_EmptySpecialityList() { Speciality testSpeciality1 = new Speciality("Cut"); testSpeciality1.Save(); Speciality testSpeciality2 = new Speciality("Color"); testSpeciality2.Save(); Stylist testStylist = new Stylist("Emmaline", "Has an experience in the beauty industry."); testStylist.Save(); testSpeciality1.AddStylist(testStylist); testSpeciality2.AddStylist(testStylist); Speciality.DeleteAll(); List <Speciality> resultStylistSpecialities = testStylist.GetSpecialities(); List <Speciality> testStylistSpecialities = new List <Speciality> { }; CollectionAssert.AreEqual(resultStylistSpecialities, testStylistSpecialities); }
public ActionResult DeleteAll() { Speciality.DeleteAll(); return(RedirectToAction("Index", "Home")); }
public void Dispose() { Client.DeleteAll(); Stylist.DeleteAll(); Speciality.DeleteAll(); }
public ActionResult DeleteAll() { Speciality.DeleteAll(); return(View()); }
public void Dispose() { Speciality.DeleteAll(); }