Beispiel #1
0
 public void Select(ItemType item)
 {
     if (!_vendingMachine.IsEmpty())
     {
         ChangeState();
     }
     else
     {
         throw new Exception("Vending machine cannot vend more cans");
     }
 }