示例#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"));
 }