Example #1
0
 public void Refill(uint numBalls)
 {
     _gumballMachine.RefillBalls(numBalls);
     if (_gumballMachine.GetQuartersCount() == 0)
     {
         _gumballMachine.SetNoQuarterState();
     }
     else
     {
         _gumballMachine.SetHasQuarterState();
     }
 }
Example #2
0
 public void Refill(uint numBalls)
 {
     _gumballMachine.RefillBalls(numBalls);
 }