Skip to content

Instantly share code, notes, and snippets.

@mxmissile
Created August 27, 2015 19:39
Show Gist options
  • Save mxmissile/d81682def1d88a522767 to your computer and use it in GitHub Desktop.
Save mxmissile/d81682def1d88a522767 to your computer and use it in GitHub Desktop.
Fluent Nhibernate Specs
var addresses = new[] {new PostalAddress(), new PostalAddress()};
var spec = new PersistenceSpecification<Contact>(session);
spec.CheckProperty(p => p.Name, "something")
.CheckProperty(p => p.GivenName, "something else")
.CheckInverseList(l => l.Addresses, addresses)
etc etc
.VerifyTheMappings();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment