public GumballMachine(int numberGumBalls)
        {
            SoldState       = new SoldState(this);
            NoQuarterState  = new NoQuarterState(this);
            HasQuarterState = new HasQuarterState(this);

            this.CountGumBall = numberGumBalls;

            if (CountGumBall > 0)
            {
                currentState = NoQuarterState;
            }
        }
 public void SetCurrentState(Patterns.State.States.State state)
 {
     currentState = state;
 }