title: Is it a good idea to test for id value while testing Fluent NHibernate mappings?
body: <p>I'm working on tests for my Fluent NHibernate mappings, and my question is - is it a good idea to test for id value if Id column is represented by identity in Sql Server? Since it changes after each insert, how can I possibly do it?</p>
  
  <pre><code>            new PersistenceSpecification&lt;Product&gt;(session)
                 .CheckProperty(p =&gt; p.Id, 1)
                 .CheckProperty(p =&gt; p.Name, "Awesome hat")
                 .CheckProperty(p =&gt; p.Price, 9.90)
                 .CheckList(p =&gt; p.StoresStockedIn, new List&lt;Store&gt;())
                 .VerifyTheMappings();
  </code></pre>