views:

75

answers:

1

Is it possible to use Fluent NHibernate's PersistenceSpecification to test NHibernate mappings done via XML?

+2  A: 

The PersistenceSpecification takes session as its only parameter, so I do not see reason why not.

Dmytrii Nagirniak
Be aware though that you might run into problems if you try to test your collection mappings if access strategy is through private field rather then property.
epitka