Students Save 30%! Learn & create with unlimited courses & creative assets Students Save 30%! Save Now

3.3 Dependency Injection and Stubs

In this lesson we will modify the TipService to allow for dependency injection of the TipCalculator so that we can write a stub for it to always provide the same output regardless of inputs.