static void Main(string[] args) { GumballStateMachine machine = new GumballStateMachine(2); machine.insertQuarter(); machine.turnCrank(); machine.insertQuarter(); machine.ejectQuarter(); machine.insertQuarter(); machine.insertQuarter(); machine.turnCrank(); machine.insertQuarter(); machine.turnCrank(); machine.refill(); machine.insertQuarter(); machine.turnCrank(); machine.insertQuarter(); machine.ejectQuarter(); machine.insertQuarter(); machine.insertQuarter(); machine.turnCrank(); System.Console.ReadLine(); }
public NoQuarter(GumballStateMachine gsm) { machine = gsm; }
public Sold(GumballStateMachine gsm) { machine = gsm; }