Пример #1
0
        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);
        }
Пример #2
0
 public void Dispose()
 {
     Parcel.ClearAll();
 }
Пример #3
0
 public ActionResult DeleteAll()
 {
     Parcel.ClearAll();
     return(View());
 }
Пример #4
0
 public void Dispose()
 {
     Parcel.ClearAll();//comment out to see console output -> WTF
 }
Пример #5
0
 public ActionResult DeleteAll()
 {
     Parcel.ClearAll();
     return(RedirectToAction("Index"));
 }