title: How to test a persistence layer correctly?
body: <p>I read the Book NHibernate in Action and there it is speaking about testing the persistence layer/data abstraction layer. You can test two ways. The <strong>mapping-test</strong> and the <strong>persistence logic-test</strong>. Accoring to the book testing the mapping means that entities are correctly loaded and saved.</p>
  
  <p>But what's about update's and delete's?</p>
  
  <p>By now I use Fluent NHibernate and this is also only testing for loading and saving.</p>
  
  <p>How do I test a persistence layer correctly?</p>