Beispiel #1
0
 public State(AccountContext context, int balance)
 {
     Context = context;
     Balance = balance;
 }
Beispiel #2
0
 public RedState(AccountContext context, int balance)
     : base(context, balance)
 {
 }
Beispiel #3
0
 private static void TestState()
 {
     AccountContext account = new AccountContext();
     account.Deposit(100);
     account.Deposit(10);
     account.Withdraw(200);
     account.Deposit(100);
 }