WPF Enterprise MVVM Session 5: Dependency Injection with Unity and Mocking with Moq
Source Code -
New microphone arrived! Better audio with the Rode Podcaster. I hope you all enjoy the better quality. In this session I teach you how to use Moq to mock out the database dependency in the integration tests to turn them into pure unit tests for your view-model. You will refactor the business layer by extracting an interface and using dependency injection to give your view-model the dependencies it needs to function.