Logo: Relish

  1. Sign in

Project: Atm

Cash Withdrawal

  • @wip
Scenarios
  • @slow
Successful withdrawal from an account
Given
my account has been credited with $100
When
I withdraw $20
Then
$20 should be dispensed
And
the balance of my account should be $80
User tries to withdraw more than their balance
Given
my account has been credited with $150
When
I withdraw $200
Then
nothing should be dispensed
And
I should be told that I have insufficient funds in my account
And
the balance of my account should be $150

Last published about 7 years ago by pragmatists.