<?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 for idisposable.co.uk</title>
	<atom:link href="http://idisposable.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://idisposable.co.uk</link>
	<description>Throwaway thoughts from a .net developer</description>
	<lastBuildDate>Sun, 21 Aug 2011 10:25:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Localisation of your ASP.NET MVC 3 Routes by ASP.NET MVC Archived Buzz, Page 1</title>
		<link>http://idisposable.co.uk/2011/08/localisation-of-your-asp-net-mvc-3-routes/comment-page-1/#comment-386</link>
		<dc:creator>ASP.NET MVC Archived Buzz, Page 1</dc:creator>
		<pubDate>Sun, 21 Aug 2011 10:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/?p=209#comment-386</guid>
		<description>[...] to Vote[FriendFeed] idisposable.co.uk &#124; Localisation of your ASP.NET MVC 3 Routes (8/21/2011)Sunday, August 21, 2011 from [...]</description>
		<content:encoded><![CDATA[<p>[...] to Vote[FriendFeed] idisposable.co.uk | Localisation of your ASP.NET MVC 3 Routes (8/21/2011)Sunday, August 21, 2011 from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit testing complex scenarios &#8211; one approach by Isaac</title>
		<link>http://idisposable.co.uk/2011/07/unit-testing-complex-scenarios-one-approach/comment-page-1/#comment-353</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Sun, 10 Jul 2011 21:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/2011/07/unit-testing-complex-scenarios-one-approach/#comment-353</guid>
		<description>Nice post :-) I do have a couple of comments  though...

1. Not unit testing per se, but I notice you&#039;re throwing exceptions for business rules - I (personally) always would use exceptions for truly exceptional cases rather than possibly, and expected, business errors - these would be returned as return values (be they enums or whatever).

2. My main tip for improvement would be to make your unit tests more granular.- the unit test&#039;s expected behaviour is for it to throw an exception of a particular type, yet your unit test has three assertions in it: -

a. The exception will be thrown.
b. CanUpdatePaymentMethod is true.
c. GetCardPaymentMethodByPaymentMethodId was never called.

What do the latter assertions have to do with the exception being thrown - nothing. So, even though it&#039;s convenient to have them in the same test, it&#039;s better IMHO in the long-term to make three separate tests with their own, unique assertion (even if they have the same or similar arrange/act sections).

To avoid the need for a separate logging test, why not encapsulate your throwing of exceptions with a &quot;ThrowAndLog&quot; method which will take in an exception (or type of exception), log it and then throw it.

I wrote a similar post on unit testing some months ago - have a look, maybe it&#039;ll give you some ideas: http://cockneycoder.wordpress.com/2010/01/10/six-months-down-the-line-unit-testing/

Cheers

Isaac</description>
		<content:encoded><![CDATA[<p>Nice post <img src='http://idisposable.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I do have a couple of comments  though&#8230;</p>
<p>1. Not unit testing per se, but I notice you&#8217;re throwing exceptions for business rules &#8211; I (personally) always would use exceptions for truly exceptional cases rather than possibly, and expected, business errors &#8211; these would be returned as return values (be they enums or whatever).</p>
<p>2. My main tip for improvement would be to make your unit tests more granular.- the unit test&#8217;s expected behaviour is for it to throw an exception of a particular type, yet your unit test has three assertions in it: -</p>
<p>a. The exception will be thrown.<br />
b. CanUpdatePaymentMethod is true.<br />
c. GetCardPaymentMethodByPaymentMethodId was never called.</p>
<p>What do the latter assertions have to do with the exception being thrown &#8211; nothing. So, even though it&#8217;s convenient to have them in the same test, it&#8217;s better IMHO in the long-term to make three separate tests with their own, unique assertion (even if they have the same or similar arrange/act sections).</p>
<p>To avoid the need for a separate logging test, why not encapsulate your throwing of exceptions with a &#8220;ThrowAndLog&#8221; method which will take in an exception (or type of exception), log it and then throw it.</p>
<p>I wrote a similar post on unit testing some months ago &#8211; have a look, maybe it&#8217;ll give you some ideas: <a href="http://cockneycoder.wordpress.com/2010/01/10/six-months-down-the-line-unit-testing/" rel="nofollow">http://cockneycoder.wordpress.com/2010/01/10/six-months-down-the-line-unit-testing/</a></p>
<p>Cheers</p>
<p>Isaac</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit testing complex scenarios &#8211; one approach by A Very Busy Month &#124; Shawty&#039;s Live Space</title>
		<link>http://idisposable.co.uk/2011/07/unit-testing-complex-scenarios-one-approach/comment-page-1/#comment-352</link>
		<dc:creator>A Very Busy Month &#124; Shawty&#039;s Live Space</dc:creator>
		<pubDate>Thu, 07 Jul 2011 20:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/2011/07/unit-testing-complex-scenarios-one-approach/#comment-352</guid>
		<description>[...] post my work colleague and good friend Terry Brown ( @terry_brown ) recently posed on his Blog at Idisposable.co.uk , if your toying with or even just looking at adopting some good unit testing practices then [...]</description>
		<content:encoded><![CDATA[<p>[...] post my work colleague and good friend Terry Brown ( @terry_brown ) recently posed on his Blog at Idisposable.co.uk , if your toying with or even just looking at adopting some good unit testing practices then [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MSBuild, YuiCompressor and making CSS and Javascript titchy by Terry</title>
		<link>http://idisposable.co.uk/2011/04/msbuild-yuicompressor-and-making-css-and-javascript-titchy/comment-page-1/#comment-343</link>
		<dc:creator>Terry</dc:creator>
		<pubDate>Tue, 03 May 2011 13:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/?p=199#comment-343</guid>
		<description>hey up fella,

I suspect Chirpy may be the better long term solution for us.  The reasoning behind the above was primarily as a learning task.

The downside of Chirpy (if it has one) is that it has to be installed on all dev machines that wish to work with those resources - not a great problem as the benefits of that tool seem to far outweigh the negatives, and it&#039;ll be no problem in adding tooling to the solution.

So in short, learning exercise in the first instance that is likely (longer term) to become a T4 style task rather than a build task.

thanks for actually reading! lol</description>
		<content:encoded><![CDATA[<p>hey up fella,</p>
<p>I suspect Chirpy may be the better long term solution for us.  The reasoning behind the above was primarily as a learning task.</p>
<p>The downside of Chirpy (if it has one) is that it has to be installed on all dev machines that wish to work with those resources &#8211; not a great problem as the benefits of that tool seem to far outweigh the negatives, and it&#8217;ll be no problem in adding tooling to the solution.</p>
<p>So in short, learning exercise in the first instance that is likely (longer term) to become a T4 style task rather than a build task.</p>
<p>thanks for actually reading! lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MSBuild, YuiCompressor and making CSS and Javascript titchy by Ryan Tomlinson</title>
		<link>http://idisposable.co.uk/2011/04/msbuild-yuicompressor-and-making-css-and-javascript-titchy/comment-page-1/#comment-342</link>
		<dc:creator>Ryan Tomlinson</dc:creator>
		<pubDate>Tue, 03 May 2011 12:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/?p=199#comment-342</guid>
		<description>Interesting and useful write up Terry.

I&#039;m interested to know why you have chosen to compress resources as a part of the build process rather than a runtime solution like SquishIt (http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher). 
Not that I think one should be a preferred solution over the other, more than it would be interesting to highlight the advantages and disadvantages over both solutions. Ultimately, however, you are using YUI compressor anyway but one is at build time and the other at runtime.

This is the first I&#039;ve seen of Chirpy too. Haven&#039;t had the chance to use it yet but it looks brilliant at a first glance.</description>
		<content:encoded><![CDATA[<p>Interesting and useful write up Terry.</p>
<p>I&#8217;m interested to know why you have chosen to compress resources as a part of the build process rather than a runtime solution like SquishIt (<a href="http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher" rel="nofollow">http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher</a>).<br />
Not that I think one should be a preferred solution over the other, more than it would be interesting to highlight the advantages and disadvantages over both solutions. Ultimately, however, you are using YUI compressor anyway but one is at build time and the other at runtime.</p>
<p>This is the first I&#8217;ve seen of Chirpy too. Haven&#8217;t had the chance to use it yet but it looks brilliant at a first glance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IIS, Optimising Performance, 304 status codes, and one stupid browser&#8230; by Terry Brown</title>
		<link>http://idisposable.co.uk/2011/03/iis-optimising-performance-304-status-codes-and-one-stupid-browser/comment-page-1/#comment-326</link>
		<dc:creator>Terry Brown</dc:creator>
		<pubDate>Mon, 21 Mar 2011 08:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/2011/03/iis-optimising-performance-304-status-codes-and-one-stupid-browser/#comment-326</guid>
		<description>superb - although it doesn&#039;t cover the case of &#039;return&#039; pressed, but the rest of it is v. good - useful table for sure.</description>
		<content:encoded><![CDATA[<p>superb &#8211; although it doesn&#8217;t cover the case of &#8216;return&#8217; pressed, but the rest of it is v. good &#8211; useful table for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on IIS, Optimising Performance, 304 status codes, and one stupid browser&#8230; by Steven Robbins</title>
		<link>http://idisposable.co.uk/2011/03/iis-optimising-performance-304-status-codes-and-one-stupid-browser/comment-page-1/#comment-325</link>
		<dc:creator>Steven Robbins</dc:creator>
		<pubDate>Mon, 21 Mar 2011 08:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/2011/03/iis-optimising-performance-304-status-codes-and-one-stupid-browser/#comment-325</guid>
		<description>There&#039;s a good SO thread on what the various browsers do with regard to cache headers when the user presses F5, CTRL+F5 etc:

http://stackoverflow.com/questions/385367/what-requests-do-browsers-f5-and-ctrl-f5-refreshes-generate</description>
		<content:encoded><![CDATA[<p>There&#8217;s a good SO thread on what the various browsers do with regard to cache headers when the user presses F5, CTRL+F5 etc:</p>
<p><a href="http://stackoverflow.com/questions/385367/what-requests-do-browsers-f5-and-ctrl-f5-refreshes-generate" rel="nofollow">http://stackoverflow.com/questions/385367/what-requests-do-browsers-f5-and-ctrl-f5-refreshes-generate</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DevWeek 2011 &#8211; A Week of Geek by Andrew Westgarth</title>
		<link>http://idisposable.co.uk/2011/03/devweek-2011-a-week-of-geek/comment-page-1/#comment-321</link>
		<dc:creator>Andrew Westgarth</dc:creator>
		<pubDate>Thu, 17 Mar 2011 22:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/2011/03/devweek-2011-a-week-of-geek/#comment-321</guid>
		<description>Sounds like you had a great week, look forward to having a chat with you about @boedie&#039;s session sometime soon!</description>
		<content:encoded><![CDATA[<p>Sounds like you had a great week, look forward to having a chat with you about @boedie&#8217;s session sometime soon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using T4 to generate enums from database lookup tables by Shawty</title>
		<link>http://idisposable.co.uk/2010/03/using-t4-to-generate-enums-from-database-lookup-tables/comment-page-1/#comment-318</link>
		<dc:creator>Shawty</dc:creator>
		<pubDate>Wed, 16 Feb 2011 20:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/2010/03/using-t4-to-generate-enums-from-database-lookup-tables/#comment-318</guid>
		<description>Pretty neat dude...

and yes.. +1 for your visitor count...</description>
		<content:encoded><![CDATA[<p>Pretty neat dude&#8230;</p>
<p>and yes.. +1 for your visitor count&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DDD9 &#8211; or 10 hours in a car and lots of learning by RoguePlanetoid</title>
		<link>http://idisposable.co.uk/2011/01/ddd9-or-10-hours-in-a-car-and-lots-of-learning/comment-page-1/#comment-315</link>
		<dc:creator>RoguePlanetoid</dc:creator>
		<pubDate>Mon, 31 Jan 2011 13:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://idisposable.co.uk/?p=176#comment-315</guid>
		<description>Great write up, sorry I missed the event! Hopefully will be able to make the DDD Scotland one and hopefully the DDD North East one too!</description>
		<content:encoded><![CDATA[<p>Great write up, sorry I missed the event! Hopefully will be able to make the DDD Scotland one and hopefully the DDD North East one too!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

