﻿<?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 Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>I dealt with the subject here:
  
http://www.ayende.com/Blog/archive/2006/04/14/7667.aspx
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment12</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment12</guid><pubDate>Thu, 23 Aug 2007 17:46:21 GMT</pubDate></item><item><title>Joe Fiorini commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>I haven't gotten to watch the rest of your video yet, so I apologize if this was already mentioned.
  
  
How would you recommend testing custom Find methods implemented in an Active Record layer, such as:
  
  
  
	[ActiveRecord]
  
	public class Employee{
  
	     ....
  
	     public Employee FindByUserId(string userId){
  
	         return Employee.FindFirst(Expression.Eq("UserId", userId));
  
	     }
  
	}
  
  
  
My first thought is to extract that find into an interfaced service layer and then mock the service in my test project to call the in memory persistence instead of ActiveRecord's Find/Save methods.  What are your thoughts on that?
  
  
-Joe
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment11</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment11</guid><pubDate>Thu, 23 Aug 2007 13:32:18 GMT</pubDate></item><item><title>Ayende Rahien commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>The first Hibernating Rhino screen cast is a good start, I think
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment10</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment10</guid><pubDate>Tue, 14 Aug 2007 20:35:47 GMT</pubDate></item><item><title>Yoni G commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>Hi,
  
Can u please recommend me of a good quickstart article to start using Rhino Mocks? Thanks, Yoni.
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment9</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment9</guid><pubDate>Tue, 14 Aug 2007 20:32:15 GMT</pubDate></item><item><title>Ravi commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>Awesome article
  
  
Can you discuss more best practices if we have deep object graph/hierarchies.
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment8</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment8</guid><pubDate>Mon, 30 Jul 2007 10:23:03 GMT</pubDate></item><item><title>Simon commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>500 An error occured:
  
  
ComponentActivator: could not proxy Cuyahoga.Modules.Downloads.DownloadsModule
  
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment7</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment7</guid><pubDate>Fri, 20 Jul 2007 19:32:54 GMT</pubDate></item><item><title>SimoneB commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>Very interesting, thanks!
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment6</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment6</guid><pubDate>Sat, 30 Jun 2007 17:56:29 GMT</pubDate></item><item><title>Tim Haines commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>Thanks very much Ayende.  I picked up a few good tips (several reshaper ones too) from this screencast.  I'll be taking your UnitOfWork for a test drive this weekend.  Oh - I also had no problems at all understanding everything you said.  I had to pause and rewind a few times to see what you'd added to the code though.  :-)
  
  
The Repository pattern is interesting.  I remember reading about it in EE's book (or was it Fowlers?), and thinking it sounded like too much work when Active Record (and the previous O/RM I used) did it all for you.  I'm looking forward to seeing how you extend one to add class specific find methods.
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment5</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment5</guid><pubDate>Fri, 29 Jun 2007 08:33:26 GMT</pubDate></item><item><title>Ayende Rahien commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>Ben,
  
Hi, not fair to reveal my nefarious plans in the open!
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment4</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment4</guid><pubDate>Thu, 28 Jun 2007 13:53:23 GMT</pubDate></item><item><title>Ben Scheirman commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>The more of these you do, the more natural your English sounds.  Keep it up!
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment3</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment3</guid><pubDate>Thu, 28 Jun 2007 13:19:30 GMT</pubDate></item><item><title>Murad Kayani commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>Excellent.
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment2</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment2</guid><pubDate>Thu, 28 Jun 2007 02:43:42 GMT</pubDate></item><item><title>jdn commented on Hibernating Rhinos - Episode #4: Hibernating Forums - Part I - Testable &amp; Painless Persistence</title><description>This is awesome stuff.  I finally got around to watching Episode #3 (hope to have some blog comments about it), and hope to backtrack to #2, but this is really, really helpful to me, and I hope to other people in the community.
  
  
And you always comment about not being a native English speaker, and it does bring about a few humorous moments, but I think your presentations are actually very easy to follow.  
  
  
Thanks for this.
</description><link>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment1</link><guid>http://ayende.com/2606/hibernating-rhinos-episode-4-hibernating-forums-part-i-testable-painless-persistence#comment1</guid><pubDate>Thu, 28 Jun 2007 01:42:29 GMT</pubDate></item></channel></rss>