Exemple #1
0
 public void MakeTransaction(Booth booth, Customer customer)
 {
     if (booth.Inventory.Count != 0)
     {
         customer.BuyItem(booth);
         booth.RemoveFirstItemFromInventory();
         lock (_lock)
         {
             _view.ItemBought(customer.GetLastItem(), customer, booth);
         }
         booth.DailyQuota--;
     }
 }