public void SetProxy()
        {
            var subClass = typeof(Inherited);
            var mapdoc = new HbmMapping();
            var mapper = new UnionSubclassMapper(subClass, mapdoc);
            mapper.Proxy(subClass);

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