Solution: Using Mocks on Loosely Coupled Code

Learn the solution to the mocking challenge and learn from your mistakes.


This lesson presents the solution to the challenge to use mocks on loosely coupled code. The solution test code will be presented followed by a detailed walkthrough.


The project solution is shown below. Run the test to confirm that all tests pass.

Get hands-on with 1200+ tech skills courses.