public void test07ReceptiveAccountsDoNotKnowNotRegisteredTransactions() { ReceptiveAccount account = new ReceptiveAccount(); Deposit deposit = new Deposit(100); Withdraw withdraw = new Withdraw(-50); Assert.IsFalse(account.registers(deposit)); Assert.IsFalse(account.registers(withdraw)); }
public void test06ReceptiveAccountsKnowsRegisteredTransactions() { ReceptiveAccount account = new ReceptiveAccount(); Deposit deposit = Deposit.registerForOn(100, account); Withdraw withdraw = Withdraw.registerForOn(-50, account); Assert.IsTrue(account.registers(deposit)); Assert.IsTrue(account.registers(withdraw)); }