<?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: Law of Demeter is easy to spot when you need extra mocks</title>
	<atom:link href="http://richarddingwall.name/2009/08/26/law-of-demeter-is-easy-to-spot-when-you-need-extra-mocks/feed/" rel="self" type="application/rss+xml" />
	<link>http://richarddingwall.name/2009/08/26/law-of-demeter-is-easy-to-spot-when-you-need-extra-mocks/</link>
	<description>The adventures of a young kiwi software developer in London</description>
	<lastBuildDate>Thu, 10 May 2012 16:20:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Crafting .NET &#187; Auto-mocking hierarchies (a.k.a. recursive mocks) with Moq</title>
		<link>http://richarddingwall.name/2009/08/26/law-of-demeter-is-easy-to-spot-when-you-need-extra-mocks/comment-page-1/#comment-35165</link>
		<dc:creator>Crafting .NET &#187; Auto-mocking hierarchies (a.k.a. recursive mocks) with Moq</dc:creator>
		<pubDate>Tue, 05 Jul 2011 18:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1801#comment-35165</guid>
		<description>[...] have just read a good post by Richard Dingwall called Law of Demeter is easy to spot when you need extra mock. He shows how you can spot violations of the Law of Demeter when you have to create extra mocks in [...]</description>
		<content:encoded><![CDATA[<p>[...] have just read a good post by Richard Dingwall called Law of Demeter is easy to spot when you need extra mock. He shows how you can spot violations of the Law of Demeter when you have to create extra mocks in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://richarddingwall.name/2009/08/26/law-of-demeter-is-easy-to-spot-when-you-need-extra-mocks/comment-page-1/#comment-9253</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1801#comment-9253</guid>
		<description>Ben,

Shame on me for not knowing Moq could do that! Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>Shame on me for not knowing Moq could do that! Thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bengt Berge</title>
		<link>http://richarddingwall.name/2009/08/26/law-of-demeter-is-easy-to-spot-when-you-need-extra-mocks/comment-page-1/#comment-9247</link>
		<dc:creator>Bengt Berge</dc:creator>
		<pubDate>Thu, 27 Aug 2009 19:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1801#comment-9247</guid>
		<description>Good points about the Law of demeter. However when using Moq you don&#039;t need the extra mocks. Moq has a cool feature called recursive mocks. It looks something like this:

var foo = new Mock();
foo.Setup(f =&gt; f.Profile.GetStatus()).Returns(SOME_RETURN_VALUE);

I just wrote about this (as a comment to your post) on my blog.</description>
		<content:encoded><![CDATA[<p>Good points about the Law of demeter. However when using Moq you don&#8217;t need the extra mocks. Moq has a cool feature called recursive mocks. It looks something like this:</p>
<p>var foo = new Mock();<br />
foo.Setup(f =&gt; f.Profile.GetStatus()).Returns(SOME_RETURN_VALUE);</p>
<p>I just wrote about this (as a comment to your post) on my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #420</title>
		<link>http://richarddingwall.name/2009/08/26/law-of-demeter-is-easy-to-spot-when-you-need-extra-mocks/comment-page-1/#comment-9191</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #420</dc:creator>
		<pubDate>Wed, 26 Aug 2009 07:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1801#comment-9191</guid>
		<description>[...] Law of Demeter is easy to spot when you need extra mocks - Richard Dingwall shows how friction setting up mocks is a sign of (and can be caused by) violations of the Law of Demeter [...]</description>
		<content:encoded><![CDATA[<p>[...] Law of Demeter is easy to spot when you need extra mocks &#8211; Richard Dingwall shows how friction setting up mocks is a sign of (and can be caused by) violations of the Law of Demeter [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

