public void Dispose()
 {
     db.DeleteAll();
 }
Beispiel #2
0
        //private void DbSetup()
        //{
        //    mock.Setup(m => m.Items).Returns(new Item[]
        //    {
        //        new Item {ItemId = 1, ItemName = "Wash the dog", Stock = 2, BuyPrice = 3, SalePrice = 4  },
        //        new Item {ItemId = 2, ItemName = "Do the dishes", Stock = 2, BuyPrice = 3, SalePrice = 4  },
        //        new Item {ItemId = 3, ItemName = "Sweep the floor", Stock = 2, BuyPrice = 3, SalePrice = 4  }
        //    }.AsQueryable());
        //}

        public void Dispose()
        {
            saleRepo.DeleteAll();
            itemRepo.DeleteAll();
        }