I love this post!
Insite's wise use of dependency injection, in the InsiteCommerce solution, enables us Insite developers to unit test our work. In this article, I show how to set up a simplistic unit testing framework, and show a couple examples. We'll be using NSubstitute to create mock dependencies that Unity will automatically inject into our units under test. Further, the Unity extension will expose a mechanism to configure your mocks.