Code coverage is @ ~80% with 26 unit tests in total, I focuesed on the unit testing the model. I would have liked to added more tests especially with mocked responses for the currency converter.
If you would like me to add UI Tests I would be happy to do so.
The basket is hidden until at least 1 item is added to it, it then automatically resigns when empty.
- animates in when needed.
- displays the total number of items in the basket.
- displays the total price of the basket in the currently selected currency.
- It will live update as you change the currency.
- It supports pluarlisation between 1 item & multiple items.
if no items of that product are in the basket, the "add to basket" button is visible, once at least one quanitiy of that product has been added to the basket, the cell updates to display a quantity toggle.
- There is no upper limit on this value.
- currency can be changed by selecting button.
- displays as action sheet (could possibley change if more currencies were supported).
- if API is unreachable for any reason then an alert will be displayed.
I would be happy to go into more detail on this