-
Website
http://www.emadibrahim.com -
Original page
http://www.emadibrahim.com/2008/08/27/mocking-and-dependency-injection-in-aspnet-mvc/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
danatkinson
1 comment · 1 points
-
Korayem
3 comments · 1 points
-
dukon21
1 comment · 1 points
-
Mladen Mihajlovic
1 comment · 1 points
-
Chad Myers
3 comments · 1 points
-
-
Popular Threads
-
Select Random Records Using Nhibernate
3 weeks ago · 4 comments
-
Select Random Records Using Nhibernate
items before but unfortunately, it is a runtime error. What I would rather
do but I am too lazy to is have this information loaded from a configuration
file instead, so if you forget to add something, you can just edit the
config file without having to recompile/re-deploy.
Ninject doesn't support config files which is ironically why I like it.
A solution would be to create a test everytime you add an "injectable" class
to test if it is getting loaded/injected properly or not. This should be a
simple IsNotNull test. (I think).