适用于NHibernate.MappingException的IntegrationTests:没有持久性:

时间:2010-05-18 21:56:23

标签: nhibernate nhibernate-mapping integration-testing

如果我忘记将映射添加到persister对象,NHibernate将在运行应用程序时抛出异常。

我想编写一个集成测试,测试所有映射都提供给NHibernate。你建议遵循的方式是什么?

1 个答案:

答案 0 :(得分:0)

看看this article Ghostbusters!),或者如果你使用流利的nhibernate,你可能会喜欢它persistence specification testing