1213141516171819
public void specifySteps() { given(new AccountIsInCredit()); when(new UserRequestsCash()); then(new ATMShouldDispenseCash()); then(new ATMShouldReturnBankCardToCustomer()); then(new AccountBalanceShouldBeReduced()); }
public void specifySteps() { given(new AccountHasOverdraftPermission()); when(new UserRequestsCash()); then(new ATMShouldDispenseCash()); then(new ATMShouldReturnBankCardToCustomer()); then(new AccountBalanceShouldBeReduced()); }
12131415161718
public void specifySteps() { given(new HappyScenarioWithOverdraft()); given(new AccountHasNegativeBalanceWithoutPermission()); when(new UserRequestsCash()); then(new ATMShouldRefuseCash()); then(new ATMShouldReturnBankCardToCustomer()); }