A series of fixtures that interact with a running Banking system and observe the enforcement of various business rules.
  1. Setup the system
  2. fit.ActionFixture
    start TestBank

  3. Create a customer with a checking account
  4. fit.ActionFixture
    start CustomerBankingActions
    enter customer Sam Walton
    enter account checking
    enter starting balance $100.00
    press create account

  5. List all accounts in the bank
  6. CustomersAccountList
    id customer balance
    checking Sam Walton $100.00

  7. Check rules that prevent zero-value deposits
  8. Deposit
    customer account amount deposit successful() balance()
    Sam Walton checking $10.00 true $110.00
    $0.00 false $110.00

  9. Create a savings account, then transfer money from checking to savings
  10. fit.ActionFixture
    enter account savings
    enter starting balance $200.00
    press create account
    enter transfer from checking
    enter transfer to savings
    enter transfer amount $50.00
    press transact transfer
    check customer total balance $310.00

  11. View all account details for Sam Walton
  12. CustomerNameAccountList Sam Walton
    id balance
    checking $60.00
    savings $250.00

  13. Check rules that prevent withdrawal of more funds than appear in the account
  14. Withdrawal
    customer account amount withdrawal successful() balance()
    Sam Walton checking $10.00 true $50.00
    $60.00 false $50.00
    $50.00 true $0.00

  15. Create a second customer and confirm that transfering money between accounts from different customers is not allowed
  16. fit.ActionFixture
    enter customer Warren Buffet
    enter account money market
    enter starting balance $100.00
    press create account
    enter transfer from money market
    enter customer Sam Walton
    enter transfer to checking
    enter transfer amount $50.00
    press transact transfer

    CustomersAccountList
    id customer balance
    checking Sam Walton $0.00
    savings Sam Walton $250.00
    money market Warren Buffet $100.00


fit.Summary