Live demo code for my "Unit Testing" presentation. (NSAnkara 2018)
Implementing and testing the following requirement in isolation:
Show a notification with current exchange rate if the user travels abroad.
Flow:
- Start from demo-start branch.
- Implement contracts for dependencies in
CountryChangeUseCaseContracts
. - Implement
CountryChangeUseCase
after injecting dependencies. - Create mocks and define test cases.
- Test the requirement in
CountryChangeUseCaseTests
.