public void SetWrongProxy() { var subClass = typeof(Inherited); var mapdoc = new HbmMapping(); var mapper = new SubclassMapper(subClass, mapdoc); ActionAssert.Throws<MappingException>(() => mapper.Proxy(typeof(Z))); }
public void SetProxy() { var subClass = typeof(Inherited); var mapdoc = new HbmMapping(); var mapper = new SubclassMapper(subClass, mapdoc); mapper.Proxy(subClass); var hbmEntity = mapdoc.SubClasses[0]; hbmEntity.Proxy.Should().Contain("Inherited"); }