April 2018
Intermediate to advanced
396 pages
11h 8m
English
Testing with implicit dependency injection is similar to testing with the cake design pattern. We can have a new object that creates mocks of the services and then makes them available to the test classes. When we want to use a concrete implementation of a service, we can just override it. We could also pass a dependency explicitly here.
Read now
Unlock full access