Beispiel #1
0
 public NoQuarterState(IGumballMachineConstext gumballMachine, TextWriter textWriter)
 {
     _gumballMachine = gumballMachine;
     _textWriter     = textWriter;
 }
Beispiel #2
0
 public GumballMachine(uint numBalls, TextWriter textWriter)
 {
     _gumballMachineContext = new GumballMachineContext(numBalls, textWriter);
 }
Beispiel #3
0
 public SoldOutState(IGumballMachineConstext gumballMachine, TextWriter textWriter)
 {
     _gumballMachine = gumballMachine;
     _textWriter     = textWriter;
 }