Tr00d / CleanArchitectureWorkshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CleanArchitectureWorkshop

Quality Gate Status

The project initially contains an endpoint to retrieve operations from the current account.

Exercise

The goal is to make the following acceptance test pass:

Scenario: Prints all statements with balance from newest to oldest
    Given I make a deposit of 1000 on '10 January 2021'
    And I make a deposit of 2000 on '15 January 2021'
    And I make a withdrawal of 500 on '20 January 2021'
    When I retrieve the account statements
    Then I should see these statements:
      | Date            | Amount | Balance |
      | 20 January 2021 | -500   | 2500    |
      | 15 January 2021 | 2000   | 3000    |
      | 10 January 2021 | 1000   | 1000    |

In order to do that, a few additional features are required:

  • User can deposit into Account
  • User can withdraw from Account

Extra features

  • A user cannot withdraw more than what's available on the account
  • A user cannot withdraw more than 2500 on 24hrs
  • Add validation for withdraw and deposit actions (ex: amounts must be positive and superior than zero)

About


Languages

Language:C# 93.8%Language:Gherkin 6.2%