Stories

- Given my savings account balance is $balance dollars
- Given my cash account balance is $balance dollars
- Given my $which account has been blocked for $n days
- When I transfer $amount dollars
- Then my savings account balance should be $balance dollars
- Then my cash account balance should be $balance dollars

transfer to cash account

  As a savings account holder
  I want to transfer money from my savings account
  So that I can get cash easily from an ATM

  savings account is in credit
    - Given my savings account balance is 100 dollars
    - Given my cash account balance is 10 dollars
    - When I transfer 20 dollars
    - Then my savings account balance should be 80 dollars
    - Then my cash account balance should be 30 dollars
  savings account is overdrawn
    - Given my savings account balance is -20 dollars
    - Given my cash account balance is 10 dollars
    - When I transfer 20 dollars
    - Then my savings account balance should be -20 dollars
    - Then my cash account balance should be 10 dollars
    - Then I should still be poor