Simple Dependency Injection using a Custom MVC Controller Factory

added by mceranski
9/2/2010 10:34:19 PM

151 Views

Dependency injection is an important concept to grasp if you plan on doing unit testing. In this example, I demonstrate how a proper constructor signature coupled with a a custom controller factory can make it easy to swap out repository objects for testing purposes. http://www.codecapers.com/post/Simple-Dependency-Injection-using-a-Custom-MVC-Controller-Factory.aspx


0 comments