Example #1
0
            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);
            }
Example #2
0
 public void Delete(string name, [FromBody] FridgeInventoryItemContract item)
 {
     _fridgeWorker.TakeItemFromFridge(item);
 }