This is a simple application that converts currencies.
Given the current exchange rate for USD to EUR is 0.96
When the user enters 100 for the amount
Then โฌ96 is returned
Tasks:
- Run the app and see how it currently functions (Go to http://localhost:8080/home)
- Run all the tests (right-click on the test folder and select run all tests)
- Make the AMoneyCalculatorShould test pass
- Make the AMoneyConverterShould test pass (if you have trouble place a breakpoint and run the test in debug)
- Replace stub in CurrencyController with call to MoneyConverter
- Tests should all be passing
- Remove @Disabled in the CurrencyExchangeBoard
- Sign up for an API key at https://apilayer.com/marketplace/fixer-api
- Get CurrencyExchangeBoard test to pass by using a REST Client (you may need to research this... remember researching is a valuable dev skill)
- Add a CurrencyExchangeBoard Bean to CurrencyConfig
- Swap the bean that MoneyConverter takes to be a CurrencyExchangeBoard implementation
- Run the app again, but this time you should get a different exchange rate
- Make a note of any missing features, error handling, etc.