public void GetQuantityOfReceiptItemTest() { 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"); model.AddOrUpdateItem("APPLE"); ReceiptController controller = new ReceiptController(view, model); Assert.AreEqual(controller.GetQuantityOfReceiptItem("APPLE"), 2); }