public ActionResult Clear() { Place.ClearAll(); List <Place> allPlaces = Place.GetInstances(); return(View("../Home/Index", allPlaces)); }
public ActionResult Clear() { Place.ClearAll(); List <Place> allPlaces = Place.GetAll(); return(View("Index", allPlaces)); }
public void DeleteAll_EmptyTheListOfPlaces_EmptyList() { Place newPlace = new Place("Timbuktu", "Great Food!"); newPlace.Save(); Place.ClearAll(); List <Place> expectedResults = new List <Place> { }; List <Place> databaseContents = Place.GetAll(); CollectionAssert.AreEqual(expectedResults, databaseContents); }
public ActionResult Delete() { Place.ClearAll(); return(View()); }
public ActionResult DeleteAll() { Place.ClearAll(); return(View("Index")); }
public void Dispose() { Place.ClearAll(); }
public void Dispose() { // Teardown - reset data after every test Place.ClearAll(); }
public ActionResult DeleteAll() { Place.ClearAll(); return(RedirectToAction("Index")); }
public ActionResult ListClear() { Place.ClearAll(); return(View()); }
public ActionResult DeleteAll() { //Clears all places Place.ClearAll(); return(View()); }