<?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 with queries and repositories (a simple example)</title>
	<atom:link href="http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Thu, 23 May 2013 23:40:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Asier Barrenetxea</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5281</link>
		<dc:creator>Asier Barrenetxea</dc:creator>
		<pubDate>Thu, 08 Nov 2012 07:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5281</guid>
		<description>In my opinion, that test to the controller looks dull because the code itself is dull. So it feels like we are overdoing things.
I mean, you are mimicking the controller action in the repository, basically the method in the repository and the controller have the same signature - almost same arguments, same output. Is this right? what&#039;s the reuse of that QueryPostStats method? None. It is very specific to this and just this action in the controller.</description>
		<content:encoded><![CDATA[<p>In my opinion, that test to the controller looks dull because the code itself is dull. So it feels like we are overdoing things.<br />
I mean, you are mimicking the controller action in the repository, basically the method in the repository and the controller have the same signature &#8211; almost same arguments, same output. Is this right? what&#8217;s the reuse of that QueryPostStats method? None. It is very specific to this and just this action in the controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Connolly</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5272</link>
		<dc:creator>Paul Connolly</dc:creator>
		<pubDate>Wed, 07 Nov 2012 21:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5272</guid>
		<description>You are pretty much testing the flow of the calls in the controller. Especially a lot of &quot;AssertWasCalled&quot; stuff which basically just verifies the lines I&#039;ve written, nothing to do with verifiying logic.</description>
		<content:encoded><![CDATA[<p>You are pretty much testing the flow of the calls in the controller. Especially a lot of &#8220;AssertWasCalled&#8221; stuff which basically just verifies the lines I&#8217;ve written, nothing to do with verifiying logic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jbogard</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5269</link>
		<dc:creator>jbogard</dc:creator>
		<pubDate>Wed, 07 Nov 2012 14:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5269</guid>
		<description>Not my code, I&#039;m just refactoring someone else&#039;s. I have no idea!</description>
		<content:encoded><![CDATA[<p>Not my code, I&#8217;m just refactoring someone else&#8217;s. I have no idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terence Lewis</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5268</link>
		<dc:creator>Terence Lewis</dc:creator>
		<pubDate>Wed, 07 Nov 2012 13:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5268</guid>
		<description>Transposing the out and return parameters between your repository implementation and Raven&#039;s .Statistics() method distracted me a little. I realize it&#039;s tangential to your point, but was there a reason for this that I&#039;m not aware of?</description>
		<content:encoded><![CDATA[<p>Transposing the out and return parameters between your repository implementation and Raven&#8217;s .Statistics() method distracted me a little. I realize it&#8217;s tangential to your point, but was there a reason for this that I&#8217;m not aware of?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jbogard</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5267</link>
		<dc:creator>jbogard</dc:creator>
		<pubDate>Wed, 07 Nov 2012 13:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5267</guid>
		<description>I think the value of unit tests to help in this situation is overstated. When I&#039;ve seen junior teams take over for more senior ones, typically what happens is that the tests simply aren&#039;t run, commented out, or marked explicit. What you&#039;re describing is not so much a failure in code, but a failure in management and team building.</description>
		<content:encoded><![CDATA[<p>I think the value of unit tests to help in this situation is overstated. When I&#8217;ve seen junior teams take over for more senior ones, typically what happens is that the tests simply aren&#8217;t run, commented out, or marked explicit. What you&#8217;re describing is not so much a failure in code, but a failure in management and team building.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What am I Testing? &#171; danielksmith</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5265</link>
		<dc:creator>What am I Testing? &#171; danielksmith</dc:creator>
		<pubDate>Wed, 07 Nov 2012 12:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5265</guid>
		<description>[...] morning I read this post by Jimmy Bogard on Los Techies. To me he seems to be saying why write tests for the three lines of code in a controller action, [...]</description>
		<content:encoded><![CDATA[<p>[...] morning I read this post by Jimmy Bogard on Los Techies. To me he seems to be saying why write tests for the three lines of code in a controller action, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Morning Brew - Chris Alcock &#187; The Morning Brew #1227</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5264</link>
		<dc:creator>The Morning Brew - Chris Alcock &#187; The Morning Brew #1227</dc:creator>
		<pubDate>Wed, 07 Nov 2012 10:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5264</guid>
		<description>[...] Testing with queries and repositories (a simple example) - Jimmy Bogard discusses the value in testing controllers and queries when using a repository pattern to handle the querying part, suggesting that the controller may not need a test, and that the repository could be integration tested. [...]</description>
		<content:encoded><![CDATA[<p>[...] Testing with queries and repositories (a simple example) &#8211; Jimmy Bogard discusses the value in testing controllers and queries when using a repository pattern to handle the querying part, suggesting that the controller may not need a test, and that the repository could be integration tested. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5263</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Wed, 07 Nov 2012 09:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5263</guid>
		<description>In my opinion, the value in unit testing the controller itself, even it&#039;s just 4 lines of code, shows when, 4 years later, when the original developer is long gone from the company, some junior developer has to make some changes in that part of the application, and assumes it&#039;s safe to do some &quot;small&quot; changes, that are not caught at compile time.. 

This, and the fact that people usually are to lazy to run the integration tests because they take too much to run, or they don&#039;t write any integration tests..</description>
		<content:encoded><![CDATA[<p>In my opinion, the value in unit testing the controller itself, even it&#8217;s just 4 lines of code, shows when, 4 years later, when the original developer is long gone from the company, some junior developer has to make some changes in that part of the application, and assumes it&#8217;s safe to do some &#8220;small&#8221; changes, that are not caught at compile time.. </p>
<p>This, and the fact that people usually are to lazy to run the integration tests because they take too much to run, or they don&#8217;t write any integration tests..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KevinLaBranche</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5260</link>
		<dc:creator>KevinLaBranche</dc:creator>
		<pubDate>Tue, 06 Nov 2012 17:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5260</guid>
		<description>And you&#039;ve answered my question to your earlier post on the matter. Perfect. :-)</description>
		<content:encoded><![CDATA[<p>And you&#8217;ve answered my question to your earlier post on the matter. Perfect. <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jbogard</title>
		<link>http://lostechies.com/jimmybogard/2012/11/06/testing-with-queries-and-repositories-a-simple-example/#comment-5259</link>
		<dc:creator>jbogard</dc:creator>
		<pubDate>Tue, 06 Nov 2012 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/jimmybogard/?p=687#comment-5259</guid>
		<description>Good question! That&#039;s in the next post, for the &quot;complex&quot; example.</description>
		<content:encoded><![CDATA[<p>Good question! That&#8217;s in the next post, for the &#8220;complex&#8221; example.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
