/// <summary> /// Create a new invoker. /// </summary> /// <param name="teller">Teller machine that will execute commands.</param> public Invoker(ITeller teller) { _teller = teller; }
/// <summary> /// Withdraw the specified amount of money from the specified teller machine. /// </summary> /// <param name="teller">Teller machine to withdraw money from.</param> /// <param name="amount">Amount of money to be withdrawn.</param> public Withdraw(ITeller teller, int amount) { _teller = teller; _amount = amount; }
/// <summary> /// Create a new inventory command. /// </summary> /// <param name="teller">Teller machine to execute the inventory command.</param> /// <param name="args">Arguments for the inventory command.</param> public Inventory(ITeller teller, IList <string> args) { _teller = teller; _denominations = args; }
/// <summary> /// Create a new restock command. /// </summary> /// <param name="teller">Teller machine to execute the command.</param> public Restock(ITeller teller) { _teller = teller; }