Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CassiusPacheco/iOS-Routing-Example
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: CassiusPacheco/iOS-Routing-Example
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: part3-di-tests
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 61 files changed
  • 1 contributor

Commits on Mar 17, 2020

  1. Add DI framework as dependency

    Use the DependencyContainer framework to inject containers in the 
    routers which will be responsible for instantiating the whole flow of 
    the app.
    
    The Graph's container should register and resolve all dependencies of 
    the app. In order to do it the container must be passed down to every 
    Router.
    
    No other classes besides Routers should have access to it. Routers are 
    the only responsible for instantiating new screens and they are 
    in charge of injecting all necessary dependencies into them.
    CassiusPacheco committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    af386df View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. Implement tests

    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.
    CassiusPacheco committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    669efa2 View commit details
    Browse the repository at this point in the history
Loading