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