views:

31

answers:

1

If I forgot to add mappings to a persister object, NHibernate will throw an exception when I'll run the application.

I want to write an integration tests, that test that all mappings are provided to NHibernate. what is the way you recommend to follow?

A: 

Take a look at this article (Ghostbusters!), or if you're using fluent-nhibernate you might like its persistence specification testing.

Mauricio Scheffer