Created
August 27, 2015 19:39
-
-
Save mxmissile/d81682def1d88a522767 to your computer and use it in GitHub Desktop.
Fluent Nhibernate Specs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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