﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Pain reduction: creating ductile tests</title><description>Because it makes for very ugly ctors.
  
Object initializers are much clearer than multi arg ctors.
  
</description><link>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment4</link><guid>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment4</guid><pubDate>Sat, 14 Jun 2008 00:35:35 GMT</pubDate></item><item><title>Ivo Ram&amp;#237;rez commented on Pain reduction: creating ductile tests</title><description>I think that's a good solution for creating the objects the test needs. But in this particular case, If Description is a non null property, why Webcast can exist without a value on it? why not to put the description as a constructor argument? 
  
You allways will have to put the code for the new required propery (in the test or the testeable class constructor). I prefer to realize it in compilation time.
  
</description><link>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment3</link><guid>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment3</guid><pubDate>Fri, 13 Jun 2008 21:44:44 GMT</pubDate></item><item><title>Ayende Rahien commented on Pain reduction: creating ductile tests</title><description>That is the quick &amp; dirty way to do so.
  
Try to use the auto transaction facility instead
</description><link>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment2</link><guid>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment2</guid><pubDate>Fri, 13 Jun 2008 01:30:35 GMT</pubDate></item><item><title>Michael Hanney commented on Pain reduction: creating ductile tests</title><description>Apologies for the off topic nature of this comment, but I find this very interesting..
  
  
With.Transaction(() =&gt; webcastRepository.Save(webcast));
  
  
I did not know that was how to create a transaction using Rhino.Commons. 
  
  
Thanks for the example. (It is Rhino.Commons.With.Transaction, yes?)
  
  
</description><link>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment1</link><guid>http://ayende.com/3363/pain-reduction-creating-ductile-tests#comment1</guid><pubDate>Fri, 13 Jun 2008 01:24:19 GMT</pubDate></item></channel></rss>