Feature: Account Holder withdraws cash
As a Account Holder I want to withdraw cash from an ATM So that I can get money when the bank is closed
Given : I have a new credit card #ATMScenario.I_have_a_new_credit_card()
When : I confirm my pin number #ATMScenario.I_confirm_my_pin_number()
Then : the card should be activated #ATMScenario.the_card_should_be_activated()
Given : the account balance is 100 #ATMScenario.createAccount(int)
And : the card is valid #ATMScenario.createCreditCard()
And : the machine contains 100 #ATMScenario.createATM(int)
When : the Account Holder requests 10 #ATMScenario.requestMoney(int)
Then : the ATM should dispense 10 #ATMScenario.checkMoney(int)
And : the account balance should be 90 #ATMScenario.checkBalance(int)
And : the card should be returned #ATMScenario.cardShouldBeReturned()
Given : I have a new credit card #ATMScenario.I_have_a_new_credit_card()
When : I confirm my pin number #ATMScenario.I_confirm_my_pin_number()
Then : the card should be activated #ATMScenario.the_card_should_be_activated()
Given : the account balance is 100 #ATMScenario.createAccount(int)
And : the card is valid #ATMScenario.createCreditCard()
And : the machine contains 100 #ATMScenario.createATM(int)
When : the Account Holder requests 20 #ATMScenario.requestMoney(int)
Then : the ATM should dispense 20 #ATMScenario.checkMoney(int)
And : the account balance should be 80 #ATMScenario.checkBalance(int)
And : the card should be returned #ATMScenario.cardShouldBeReturned()
Given : I have a new credit card #ATMScenario.I_have_a_new_credit_card()
When : I confirm my pin number #ATMScenario.I_confirm_my_pin_number()
Then : the card should be activated #ATMScenario.the_card_should_be_activated()
Given : the account balance is 100 #ATMScenario.createAccount(int)
And : the card is valid #ATMScenario.createCreditCard()
And : the machine contains 100 #ATMScenario.createATM(int)
When : the Account Holder requests 30 #ATMScenario.requestMoney(int)
Then : the ATM should dispense 30 #ATMScenario.checkMoney(int)
And : the account balance should be 70 #ATMScenario.checkBalance(int)
And : the card should be returned #ATMScenario.cardShouldBeReturned()
Given : I have a new credit card #ATMScenario.I_have_a_new_credit_card()
When : I confirm my pin number #ATMScenario.I_confirm_my_pin_number()
Then : the card should be activated #ATMScenario.the_card_should_be_activated()
Given : the account balance is 300 #ATMScenario.createAccount(int)
And : the card is valid #ATMScenario.createCreditCard()
And : the machine contains 300 #ATMScenario.createATM(int)
When : the Account Holder requests 20 #ATMScenario.requestMoney(int)
Then : the ATM should dispense 20 #ATMScenario.checkMoney(int)
And : the account balance should be 280 #ATMScenario.checkBalance(int)
And : the card should be returned #ATMScenario.cardShouldBeReturned()