Enterprise WPF #5: Dependency Injection, Unity, and Moq

Опубликовано: 13 Февраль 2025
на канале: David Anderson
19,801
175

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.

Code:
http://1drv.ms/1C9TF6e

#wpf #mvvm #dcomengineering