Esempio n. 1
0
 public Account(string owner)
 {
     _owner = owner;
     _state = new SilverState(0.0, this);
 }
Esempio n. 2
0
 public SilverState(AccountState state) :
     this(state.Balance, state.Account)
 {
 }
Esempio n. 3
0
 public GoldState(AccountState state)
     : this(state.Balance, state.Account)
 {
 }
Esempio n. 4
0
 public RedState(AccountState state)
 {
     this.balance = state.Balance;
     this.account = state.Account;
     Initialize();
 }