<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Emad Ibrahim - Latest Comments in Mocking and Dependency Injection in ASP.NET MVC</title><link>http://emadibrahim.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 07 Jul 2009 09:24:08 -0000</lastBuildDate><item><title>Re: Mocking and Dependency Injection in ASP.NET MVC</title><link>http://www.emadibrahim.com/2008/08/27/mocking-and-dependency-injection-in-aspnet-mvc/#comment-12252423</link><description>Good question.  I actually don't test it and I have forgotten to add a few&lt;br&gt;items before but unfortunately, it is a runtime error.  What I would rather&lt;br&gt;do but I am too lazy to is have this information loaded from a configuration&lt;br&gt;file instead, so if you forget to add something, you can just edit the&lt;br&gt;config file without having to recompile/re-deploy.&lt;br&gt;&lt;br&gt;Ninject doesn't support config files which is ironically why I like it.&lt;br&gt;&lt;br&gt;A solution would be to create a test everytime you add an "injectable" class&lt;br&gt;to test if it is getting loaded/injected properly or not.  This should be a&lt;br&gt;simple IsNotNull test.  (I think).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eibrahim</dc:creator><pubDate>Tue, 07 Jul 2009 09:24:08 -0000</pubDate></item><item><title>Re: Mocking and Dependency Injection in ASP.NET MVC</title><link>http://www.emadibrahim.com/2008/08/27/mocking-and-dependency-injection-in-aspnet-mvc/#comment-12246055</link><description>One more thing I only thought about once I was implementing your technique in my project: How do you test your StandardModule.Load bindings? I'm sure I'll forget adding one of those sooner or later.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian Grigore</dc:creator><pubDate>Tue, 07 Jul 2009 06:47:11 -0000</pubDate></item><item><title>Re: Mocking and Dependency Injection in ASP.NET MVC</title><link>http://www.emadibrahim.com/2008/08/27/mocking-and-dependency-injection-in-aspnet-mvc/#comment-12195146</link><description>Excellent post! I've been looking for a way to DRY up my own code as well and your post led me on the right way.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adrian Grigore</dc:creator><pubDate>Mon, 06 Jul 2009 09:26:55 -0000</pubDate></item></channel></rss>