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