Solution: Using Mocks on Loosely Coupled Code

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

Introduction

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.

Solution

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

Get hands-on with 1400+ tech skills courses.