Articles : Page 1 of 1
- Filter:
- DependencyInjection
- Model
-
Dependency Injection in MVC 3–with Views
Jan 1124If you have not read the first post in this series, please do so as these samples build on that post. At first, it may appear that MVC 3s Dependency Injection is not all that different than what we had in MVC 1 and 2. The fact is, MVC 3 gives us a lot more flexibility, and for sure, Dependency Injection is a first class citizen in the ASP MVC Framework. Using the Unity IoC Container, lets take a look at how views can take advantage of Dependency Injection. View Page Class public class ...
-
Moving containers beyond testability
Sep 1021In Derick Bailey’s two recent posts on containers, I found a lot of déjà vu in his sentiments. In fact, it’s quite similar to the issues that I was running into a while back, trying to move beyond top-down design. I had become a little disenchanted with my container usage. I created top-level classes, abstracted dependencies in the form of interfaces, and then filled in implementations. It works well for test-driven development, as an interface in C# is still the easiest way to provide the s...
- 1

