Exemplo n.º 1
0
 private bool IsInStockAndHaveTender(string nomNom)
 {
     return(Stock.ContainsKey(nomNom) && Stock[nomNom].Count != 0 && tenderAmount >= Stock[nomNom][0].Price);
 }
Exemplo n.º 2
0
 private bool IsInStockWithInsufficientTender(string nomNom)
 {
     return(Stock.ContainsKey(nomNom) && Stock[nomNom].Count != 0 && Stock[nomNom][0].Price > tenderAmount);
 }
Exemplo n.º 3
0
 private bool IsOutOfStockItem(string nomNom)
 {
     return(Stock.ContainsKey(nomNom) && Stock[nomNom].Count == 0);
 }