title: How do you mock UnitOfWork from Rhino.Commons?
body: <p>My application is using Rhino.Commons - NHRepository and UnitOfWork. I like the With.Transaction() syntax for transactions and have been using it for some time.</p>
  
  <p>But I ran into a problem - how do I mock a UnitOfWork for testing? Especially this is causing trouble for me: </p>
  
  <pre><code>With.Transaction(() =&gt; Repositories.TwinfieldSpooler.Update(spool));
  </code></pre>
  
  <p>I can mock repositories with Rhino.Mocks, but how can I easily mock UnitOfWork for this kind of code?</p>