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 f开发者_开发技巧ollow?
Take a look at this article (Ghostbusters!), or if you're using fluent-nhibernate you might like its persistence specification testing.
精彩评论