<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Testing fun with ASP.NET MVC</title>
	<atom:link href="http://lostechies.com/jimmybogard/2008/10/29/testing-fun-with-asp-net-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2008/10/29/testing-fun-with-asp-net-mvc/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Sun, 19 May 2013 03:22:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: mbratton</title>
		<link>http://lostechies.com/jimmybogard/2008/10/29/testing-fun-with-asp-net-mvc/#comment-988</link>
		<dc:creator>mbratton</dc:creator>
		<pubDate>Thu, 30 Oct 2008 14:32:18 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/10/29/testing-fun-with-asp-net-mvc.aspx#comment-988</guid>
		<description>I always wondered why this wasn&#039;t an interface. Now I wish I didn&#039;t know.</description>
		<content:encoded><![CDATA[<p>I always wondered why this wasn&#8217;t an interface. Now I wish I didn&#8217;t know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogardj</title>
		<link>http://lostechies.com/jimmybogard/2008/10/29/testing-fun-with-asp-net-mvc/#comment-987</link>
		<dc:creator>bogardj</dc:creator>
		<pubDate>Thu, 30 Oct 2008 14:28:03 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/10/29/testing-fun-with-asp-net-mvc.aspx#comment-987</guid>
		<description>@Karthik

Yeah, such a weird argument...and &quot;throw new NotImplementedExceptoin&quot; is an improvement?</description>
		<content:encoded><![CDATA[<p>@Karthik</p>
<p>Yeah, such a weird argument&#8230;and &#8220;throw new NotImplementedExceptoin&#8221; is an improvement?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://lostechies.com/jimmybogard/2008/10/29/testing-fun-with-asp-net-mvc/#comment-986</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Thu, 30 Oct 2008 13:09:17 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/10/29/testing-fun-with-asp-net-mvc.aspx#comment-986</guid>
		<description>This issue was well discussed when they first changed HttpContext into an Abstract base class instead of an Interface.

It was originally wrote it to be an IHttpContext but was changed in later previews to be an abstract base class.  

This was because someone decided that making it an interface would &quot;break too many people&#039;s code&quot; if they modified the interface definition in further releases of the framework.  Because your code is supposed to compile on the first try when you upgrade your framework, right? :P</description>
		<content:encoded><![CDATA[<p>This issue was well discussed when they first changed HttpContext into an Abstract base class instead of an Interface.</p>
<p>It was originally wrote it to be an IHttpContext but was changed in later previews to be an abstract base class.  </p>
<p>This was because someone decided that making it an interface would &#8220;break too many people&#8217;s code&#8221; if they modified the interface definition in further releases of the framework.  Because your code is supposed to compile on the first try when you upgrade your framework, right? <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Jack</title>
		<link>http://lostechies.com/jimmybogard/2008/10/29/testing-fun-with-asp-net-mvc/#comment-985</link>
		<dc:creator>Colin Jack</dc:creator>
		<pubDate>Thu, 30 Oct 2008 09:38:47 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/10/29/testing-fun-with-asp-net-mvc.aspx#comment-985</guid>
		<description>Didn&#039;t realize thats how HttpContectBase behaves, smelllly.

I personally feel like some of the ASP.NET MVC design has been very poor. Lots of unbelievably heavyweight abstract classes being flung about the place and little thought about ease of testing.

Worst example I&#039;ve seen so far (in preview 5) was that your IModelBinder takes a ControllerContext which is a ridiculously heavyweight class thats difficult to mock. Plus in reality the first thing you&#039;re going to want to do is access the Form collection which involves navigating through a very long chain of objects (whilst I don&#039;t always follow LOD it certainly needed to be applied better here).</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t realize thats how HttpContectBase behaves, smelllly.</p>
<p>I personally feel like some of the ASP.NET MVC design has been very poor. Lots of unbelievably heavyweight abstract classes being flung about the place and little thought about ease of testing.</p>
<p>Worst example I&#8217;ve seen so far (in preview 5) was that your IModelBinder takes a ControllerContext which is a ridiculously heavyweight class thats difficult to mock. Plus in reality the first thing you&#8217;re going to want to do is access the Form collection which involves navigating through a very long chain of objects (whilst I don&#8217;t always follow LOD it certainly needed to be applied better here).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
