示例#1
0
        static void Main(string[] args)
        {
            var gm = new GumballMachine(200, "I.Raskovoi 24");
            var monitor = new GumballMonitor(gm);

            monitor.Report();

            Console.ReadKey();
        }
示例#2
0
 public GumballMonitor(GumballMachine gumballMachine)
 {
     _gumballMachine = gumballMachine;
 }
示例#3
0
 public WinnerState(GumballMachine gumballMachine)
 {
     _gumballMachine = gumballMachine;
 }
示例#4
0
 public NoQuarterState(GumballMachine gumballMachine)
 {
     _gumballMachine = gumballMachine;
 }
示例#5
0
 public SoldState(GumballMachine gumballMachine)
 {
     _gumballMachine = gumballMachine;
 }