public void GetExistingInventoryItem() { MockFridgeRepository mockRepo = new MockFridgeRepository(); FridgeWorker fridgeWorker = new FridgeWorker(mockRepo); fridgeWorker.AddIngredientToFridge(new InventoryItem(inventoryItemMeatballs, 10)); FridgeInventoryItemContract result = fridgeWorker.GetInventoryItem(inventoryItemMeatballs); Assert.AreEqual(10, result.Quantity); }
public void Delete(string name, [FromBody] FridgeInventoryItemContract item) { _fridgeWorker.TakeItemFromFridge(item); }