public void RemoveStockListItem() { Discount discount = new Discount("D106", DiscountTypeEnum.Hidden, DateTime.Parse("01/01/2018"), DateTime.Parse("31/12/2018"), 50, true); Product product = new Product("P110", "BOX", 100, "this is a plastic box"); StockListItem expected = new StockListItem(10, product, discount, PurchaseEnum.Immediate, "S1"); handler.AddStockListItemToDataBase(expected); StockListItem find = handler.GetStockListItembyProductID("P110"); Assert.AreEqual(expected, find); handler.RemoveStockListItem(expected); find = handler.GetStockListItembyProductID("P110"); Assert.IsNull(find); }