iOS-Routing-Example
iOS-Routing-Example copied to clipboard
Implement tests - Part 3
A DependencyContainer extension has been added to the testing target in order to ensure that all interfaces registered in the container have been swapped for Mock classes instead.
Also, a RouterMock implementing Router spy methods and all Routes is used to test all routes are executing the correct flow using the correct transition.
Finally, a RoutesMock which implements all Routes interfaces has been added to ensure all routes being triggered from the view models are properly tested.