public void SetWrongProxy() { var subClass = typeof(Inherited); var mapdoc = new HbmMapping(); var mapper = new UnionSubclassMapper(subClass, mapdoc); Executing.This(() => mapper.Proxy(typeof(Z))).Should().Throw <MappingException>(); }
public void SetWrongProxy() { var subClass = typeof(Inherited); var mapdoc = new HbmMapping(); var mapper = new UnionSubclassMapper(subClass, mapdoc); ActionAssert.Throws <MappingException>(() => mapper.Proxy(typeof(Z))); }
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"); }