コード例 #1
0
        public void PrivateEmptyConstructorTest()
        {
            var discriminatorConfiguration = new InheritanceDiscriminatorConfiguration();

            discriminatorConfiguration.Add <MyAbstractClass>(x => x.Discriminator, typeof(MyImplementationWithPrivateEmptyConstructor));
        }
コード例 #2
0
        public void ConstructorContainingValidParametersTest()
        {
            var discriminatorConfiguration = new InheritanceDiscriminatorConfiguration();

            discriminatorConfiguration.Add <MyAbstractClass>(x => x.Discriminator, typeof(MyImplementationWithConstructorContainingValidParameters));
        }