Thank you for taking the time to do the RTGS.global dotnet tech test. At RTGS.global we have a strong focus on TDD and we'd expect the tech test to be completed with this in mind. We have implemented the following scenarios:
- If a deposit of
1000is made toaccount Athe balance should be1000 - If deposits of
1000and2000are made toaccount Athen the balance should be3000 - If
1000is transferred fromaccount Atoaccount Bthenaccount A's balance should be-1000andaccount B's balance should be1000
Download .net 6 and an IDE that can run the project.
In this first step please spend no more than 30 minutes addressing the issues below. This step is for you to become familiar with the code base before bringing it to our pairing session in Step 3.
Please review the code base and add separate commits for each point below.
- Can you identify any code smells?
- Return appropriate error when trying to use an account that doesn't exist.
- You should not be able to deposit a negative amount.
- You should not be able to transfer money to the same account.
Zip the solution up (including the git directory), upload to cloud storage and share a link where we can access it.
Once we have reviewed your solution, we will arrange a call to extend your solution with another scenario.