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