public void CheckReceiptForItemTest() { Dictionary <string, decimal> sample = new Dictionary <string, decimal>() { { "APPLE", 0.50m }, { "ORANGE", 0.70m }, { "BANANA", 0.82m } }; PriceCatalog catalog = new PriceCatalog(sample); ReceiptView view = new ReceiptView(); Receipt model = new Receipt(catalog); model.AddOrUpdateItem("APPLE"); ReceiptController controller = new ReceiptController(view, model); Assert.AreEqual(controller.CheckReceiptForItem("APPLE"), true); Assert.AreEqual(controller.CheckReceiptForItem("APasd"), false); }