public void ClearAll_ClearsAllItems_True() { // Arrange Parcel newItem0 = new Parcel(2, 3, 4, 5); Parcel newItem1 = new Parcel(5, 6, 7, 8); List <Parcel> newList = new List <Parcel> { }; // Act Parcel.ClearAll(); List <Parcel> result = Parcel.GetAll(); // Assert CollectionAssert.AreEqual(newList, result); }
public void Dispose() { Parcel.ClearAll(); }
public ActionResult DeleteAll() { Parcel.ClearAll(); return(View()); }
public void Dispose() { Parcel.ClearAll();//comment out to see console output -> WTF }
public ActionResult DeleteAll() { Parcel.ClearAll(); return(RedirectToAction("Index")); }