static void Main(string[] args) { var gm = new GumballMachine(200, "I.Raskovoi 24"); var monitor = new GumballMonitor(gm); monitor.Report(); Console.ReadKey(); }
public GumballMonitor(GumballMachine gumballMachine) { _gumballMachine = gumballMachine; }
public WinnerState(GumballMachine gumballMachine) { _gumballMachine = gumballMachine; }
public NoQuarterState(GumballMachine gumballMachine) { _gumballMachine = gumballMachine; }
public SoldState(GumballMachine gumballMachine) { _gumballMachine = gumballMachine; }