public void Dispose() { Client.DeleteAll(); Stylist.DeleteAll(); Specialty.DeleteAll(); ClientTests.DeleteJoin(); }
public ActionResult Delete() { Specialty.DeleteAll(); List <Specialty> allSpecialties = Specialty.GetAll(); return(RedirectToAction("Index", allSpecialties)); }
public void Dispose() { Tutor.DeleteAll(); Client.DeleteAll(); Appointment.DeleteAll(); Specialty.DeleteAll(); }
public ActionResult DeleteAllSpecialties() { Specialty.DeleteAll(); List <Specialty> allSpecialties = Specialty.GetAll(); return(View("Index", allSpecialties)); }
public void Dispose() { Stylist.DeleteAll(); Specialty.DeleteAll(); /* we can omit Client.DeleteAll() on account of no * association between Specialties and Clients */ }
public void Dispose() { Client.DeleteAll(); Stylist.DeleteAll(); Client.DeleteAllStylistClient(); Specialty.DeleteAll(); Specialty.DeleteAllstylistsSpecialties(); }
public ActionResult DeleteAll() { Stylist.DeleteAll(); Client.DeleteAll(); Specialty.DeleteAll(); return(RedirectToAction("Index", "Home")); }
public ActionResult DeleteAll() { Specialty.DeleteAll(); specialtys_stylists.DeleteAll(); List <Specialty> allSpecialtys = Specialty.GetAll(); return(View("Index", allSpecialtys)); }
public void Dispose() { Stylist.DeleteAll(); Client.DeleteAll(); Specialty.DeleteAll(); clients_stylists.DeleteAll(); specialtys_stylists.DeleteAll(); }
public void DeleteAll_DeletesAllSpecialtysFromDb_SpecialtyList() { Specialty newSpecialty = new Specialty("Chemistry", "Science"); newSpecialty.Save(); Specialty.DeleteAll(); List <Specialty> expectedList = new List <Specialty> { }; List <Specialty> actualList = Specialty.GetAll(); CollectionAssert.AreEqual(expectedList, actualList); }
public void Specialtys_DeteleAll() { Specialty firstSpecialty = new Specialty("color"); Specialty secondSpecialty = new Specialty("cutting"); firstSpecialty.Save(); secondSpecialty.Save(); Specialty.DeleteAll(); int num = Specialty.GetAll().Count; Assert.AreEqual(0, num); }
public void DeleteAll_DeletesAllEntries_True() { Specialty newSpecialtyCool = new Specialty("Cool"); newSpecialtyCool.Save(); Specialty newSpecialtyNice = new Specialty("Nice"); newSpecialtyNice.Save(); Specialty.DeleteAll(); List <Specialty> newList = Specialty.GetAll(); Assert.AreEqual(newList.Count, 0); }
public void DeleteAll_DeletesAllSpecialtiesFromDataBase_0() { //Arrange Specialty newSpecialty1 = new Specialty("Some Title", "Some description..."); Specialty newSpecialty2 = new Specialty("Another Title", "Another description..."); //Act Specialty.DeleteAll(); int result = Specialty.GetAll().Count; //Assert Assert.AreEqual(0, result); }
public void DeleteAll_DeletesAllSpecialties_True() { //Arrange Specialty testSpecialty = new Specialty("Faiza"); testSpecialty.Save(); //Act Specialty.DeleteAll(); int result = Specialty.GetAll().Count; //Assert Assert.AreEqual(result, 0); }
public void DeleteAll_DeletesAllSpecialtiesFromDatabase_SpecialtyList() { //Arrange Specialty testSpecialty = new Specialty("buzz cuts"); Specialty testSpecialty2 = new Specialty("bleaching"); testSpecialty.Save(); testSpecialty2.Save(); //Act Specialty.DeleteAll(); List <Specialty> result = Specialty.GetAll(); //Assert Assert.AreEqual(0, result.Count); }
public void DeleteAll_DeletesAllSpecialtysInDatabase_SpecialtyList() { Specialty testSpecialty01 = new Specialty("braids", 1); testSpecialty01.Save(); Specialty testSpecialty02 = new Specialty("locs", 2); testSpecialty02.Save(); Specialty.DeleteAll(); List <Specialty> expectedList = new List <Specialty> { }; List <Specialty> resultList = Specialty.GetAll(); CollectionAssert.AreEqual(expectedList, resultList); }
public void DeleteAll_DeletesAllStylistsFromDatabase() { //Arrange string specialty = "Colorist"; Specialty newSpecialty = new Specialty(specialty); newSpecialty.Save(); Specialty.DeleteAll(); //Act List <Specialty> newList = new List <Specialty> { newSpecialty }; List <Specialty> resultList = Specialty.GetAll(); //Assert CollectionAssert.AreNotEqual(newList, resultList); }
public void Dispose() { Stylist.DeleteAll(); Client.ClearAll(); Specialty.DeleteAll(); }
public void Dispose() { Employee.DeleteAll(); Client.DeleteAll(); Specialty.DeleteAll(); }
public ActionResult DeleteAll() { Specialty.DeleteAll(); return(RedirectToAction("SpecialtyIndex")); }
public void Dispose() { Customer.DeleteAll(); Stylist.DeleteAll(); Specialty.DeleteAll(); }
public ActionResult DeleteAllSpecialties() { Specialty.DeleteAll(); return(View()); }
public void Dispose() { Doctor.DeleteAll(); Specialty.DeleteAll(); }
public ActionResult DeleteAll() { Specialty.DeleteAll(); return(RedirectToAction("Display")); }
public IActionResult DeleteALl() { Specialty.DeleteAll(); return(RedirectToAction("Index", "Home")); }
public ActionResult DeleteAll() { Specialty.DeleteAll(); return(RedirectToAction("ViewAll")); }
public static void Cleanup() { Specialty.DeleteAll(); }
public void Dispose() { Client.DeleteAll(); Stylist.DeleteAll(); Specialty.DeleteAll(); }
public void Dispose() { Specialty.DeleteAll(); }
public ActionResult DeleteAll() { Specialty.DeleteAll(); return(View("Index", Specialty.GetAll())); }