public void WhenEntityIsTablePerHierarchyThenMatch()
 {
     var orm = new Mock<IDomainInspector>();
     orm.Setup(x => x.IsTablePerClassHierarchy(typeof(MyClass))).Returns(true);
     var applier = new ClassDiscriminatorValueAsClassNameApplier(orm.Object);
     applier.Match(typeof(MyClass)).Should().Be.True();
 }
Example #2
0
        public void WhenEntityIsTablePerHierarchyThenMatch()
        {
            var orm = new Mock <IDomainInspector>();

            orm.Setup(x => x.IsTablePerClassHierarchy(typeof(MyClass))).Returns(true);
            var applier = new ClassDiscriminatorValueAsClassNameApplier(orm.Object);

            applier.Match(typeof(MyClass)).Should().Be.True();
        }