<?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: ASP.NET MVC, TDD and AutoMapper</title>
	<atom:link href="http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/</link>
	<description>Adventures of a young kiwi software developer in London</description>
	<lastBuildDate>Tue, 09 Mar 2010 23:02:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dario-g</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-9956</link>
		<dc:creator>dario-g</dc:creator>
		<pubDate>Tue, 15 Sep 2009 00:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-9956</guid>
		<description>If you use NHibernate then AutoMapping collections are done by AliasToBeanTransformer :)</description>
		<content:encoded><![CDATA[<p>If you use NHibernate then AutoMapping collections are done by AliasToBeanTransformer :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-9080</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 22 Aug 2009 23:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-9080</guid>
		<description>cowgar,

1. TaskServiceImpl was a typo, nice spotting :)

2. I generally give repositories and services short names when they are injected into other classes, e.g. calling the ITaskService simply &#039;tasks&#039;. Generally that is all that is required to explain its purpose within the context of the caller.

3. It is to assert that TaskService.GetCurrentTasks() performs a call to this method from the repository:

&lt;code&gt;public interface ITaskRepository
{
&#160;&#160;&#160;&#160;IEnumerable&lt;Task&gt; GetAll();
}&lt;/code&gt;

Sorry I didn&#039;t show the ITaskRepository as part of my example.</description>
		<content:encoded><![CDATA[<p>cowgar,</p>
<p>1. TaskServiceImpl was a typo, nice spotting :)</p>
<p>2. I generally give repositories and services short names when they are injected into other classes, e.g. calling the ITaskService simply &#8216;tasks&#8217;. Generally that is all that is required to explain its purpose within the context of the caller.</p>
<p>3. It is to assert that TaskService.GetCurrentTasks() performs a call to this method from the repository:</p>
<p><code>public interface ITaskRepository<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;IEnumerable&lt;Task&gt; GetAll();<br />
}</code></p>
<p>Sorry I didn&#8217;t show the ITaskRepository as part of my example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cowgaR</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-9079</link>
		<dc:creator>cowgaR</dc:creator>
		<pubDate>Sat, 22 Aug 2009 22:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-9079</guid>
		<description>shouldn&#039;t service.GetCurrentTasks(); be:
this.tasks = service.GetCurrentTasks();

and I have a problem with:
repository.Verify(r =&gt; r.GetAll());

Care to elaborate what MOQ will do? Can&#039;t get this test at all :D</description>
		<content:encoded><![CDATA[<p>shouldn&#8217;t service.GetCurrentTasks(); be:<br />
this.tasks = service.GetCurrentTasks();</p>
<p>and I have a problem with:<br />
repository.Verify(r =&gt; r.GetAll());</p>
<p>Care to elaborate what MOQ will do? Can&#8217;t get this test at all :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cowgaR</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-9078</link>
		<dc:creator>cowgaR</dc:creator>
		<pubDate>Sat, 22 Aug 2009 22:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-9078</guid>
		<description>TaskServiceImpl should be TaskService, you probably forgot to rename a constructor...</description>
		<content:encoded><![CDATA[<p>TaskServiceImpl should be TaskService, you probably forgot to rename a constructor&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Dingwall &#187; ASP.NET MVC, TDD and Fluent Validation</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-8962</link>
		<dc:creator>Richard Dingwall &#187; ASP.NET MVC, TDD and Fluent Validation</dc:creator>
		<pubDate>Wed, 19 Aug 2009 09:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-8962</guid>
		<description>[...] I posted about ASP.NET MVC, TDD and AutoMapper, and how you can use them together in a DDD application. Today I thought I would follow up with a [...]</description>
		<content:encoded><![CDATA[<p>[...] I posted about ASP.NET MVC, TDD and AutoMapper, and how you can use them together in a DDD application. Today I thought I would follow up with a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-8936</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 18 Aug 2009 22:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-8936</guid>
		<description>John,

We originally started doing it like that, but found it became a pain to set up when the class mapping in question used custom IValueResolvers and/or ITypeConverters. It was simpler to mock out the entire automapper than all the individual dependencies.</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>We originally started doing it like that, but found it became a pain to set up when the class mapping in question used custom IValueResolvers and/or ITypeConverters. It was simpler to mock out the entire automapper than all the individual dependencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Kruger</title>
		<link>http://richarddingwall.name/2009/08/18/asp-net-mvc-tdd-and-automapper/comment-page-1/#comment-8928</link>
		<dc:creator>Jon Kruger</dc:creator>
		<pubDate>Tue, 18 Aug 2009 17:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1676#comment-8928</guid>
		<description>I see what you&#039;re doing with mocking the IMappingEngine... I actually wired up StructureMap to actually use the real IMappingEngine in my unit tests.  I feel like it&#039;s made my tests much easier to read and write because I don&#039;t have to write a separate test for the translation and another test for the thing that uses the translation.

Not to say what you&#039;re doing it wrong though, by any means.</description>
		<content:encoded><![CDATA[<p>I see what you&#8217;re doing with mocking the IMappingEngine&#8230; I actually wired up StructureMap to actually use the real IMappingEngine in my unit tests.  I feel like it&#8217;s made my tests much easier to read and write because I don&#8217;t have to write a separate test for the translation and another test for the thing that uses the translation.</p>
<p>Not to say what you&#8217;re doing it wrong though, by any means.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
