1011121314151617
public class InLotsOfTrouble extends MultiStepScenario { public void specifySteps() { given(new AccountIsOverOverdraftLimit()); when(new UserRequestsCash()); then(new ATMShouldRefuseCash()); then(new ATMShouldRetainBankCard()); }
1112131415161718
public void specifySteps() { given(new HappyScenarioWithOverdraft()); given(new AccountHasNegativeBalanceWithoutPermission()); when(new UserRequestsCash()); then(new ATMShouldRefuseCash()); then(new ATMShouldReturnBankCardToCustomer()); }