Esempio n. 1
0
 public int GetItemStock(string itemName, string category)
 {
     return(InventoryItems.Single(i => i.Name.Equals(itemName) && i.Category.Equals(category)).Stock);
 }
Esempio n. 2
0
 public IInventoryItem FindItem(string name, string category)
 {
     return(InventoryItems.Single(i => i.Name.Equals(name) && i.Category.Equals(category)));
 }