This is an update to a previous post on MVC and Unity: Dependency injection in ASP.NET MVC with Unity IoC Container. After my previous post, new versions of both ASP.NET MVC and Unity has been released and some confusion about their compatibility has shown up on the Internet. Update! Download sample... [More]
Enabling truly easy testability with ASP.NET MVC Controllers requires a Dependency Injection container. This post is about showing a more real life example of combining Unity with ASP.NET MVC Controllers than the standard demo. Update! Download sample project MvcWithUnity.VS2010.zip (727,5KB) Downlo... [More]
Much of the legacy ASP.NET code I’ve seen is littered with calls to methods on the HttpServerUtility class, Server.MapPath(…) is one such method. This makes it really hard to test. Much of the legacy ASP.NET code I’ve seen is littered with calls to methods on the HttpServerUtility class, [code... [More]
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.