Sorry if this seems a bit naive, but I'm just crawling my way into unit testing and fluent!
The example!
Two tables, 'Address' and 'Regions'. The test for Address runs first using a CheckReference for a region (creating record 1 in the Regions table) then when the Regions test runs it fails as the system returns the record for the Address Test not the Regions Test.
I am following the example roughly and using...
new PersistenceSpecification<Region>(session, new CustomEqualityComparer()).
CheckProperty(c => c.RegionID, ATestID).
VerifyTheMappings();
Yes I know I could use the deus ex machina approach of testing for record 2 but then I need to know the run order etc.
Is there a better way of doing this, do I need a way that it tests for the ID correctly (know the run order or something better) or is having the ID in the test pointless?
Cheers Michael