Ejemplo n.º 1
0
 // This constructor will create new state taking values from old state
 public CardValidatedState(ATMState state)    
     :this(state.DummyCashPresent, state.Atm)
 {
     
 }
Ejemplo n.º 2
0
 // This constructor will create new state taking values from old state
 public CardValidatedState(ATMState state)
     : this(state.DummyCashPresent, state.Atm)
 {
 }
Ejemplo n.º 3
0
 // This constructor will create new state taking values from old state
 public CashWithdrawnState(ATMState state)
     : this(state.DummyCashPresent, state.Atm)
 {
 }
Ejemplo n.º 4
0
 // This constructor will create new state taking values from old state
 public NoCashState(ATMState state)      
     :this(state.DummyCashPresent, state.Atm)
 {
     
 }
Ejemplo n.º 5
0
 // This constructor will create new state taking values from old state
 public CashWithdrawnState(ATMState state)      
     :this(state.DummyCashPresent, state.Atm)
 {
     
 }
Ejemplo n.º 6
0
 // This constructor will create new state taking values from old state
 public NoCardState(ATMState state)
     : this(state.DummyCashPresent, state.Atm)
 {
 }
Ejemplo n.º 7
0
Archivo: ATM.cs Proyecto: fm107/Shared
 public ATM()
 {
     currentState = new NoCardState(1000, this);
 }
Ejemplo n.º 8
0
 public ATM()
 {
     currentState = new NoCardState(1000, this);
 }