Exemplo n.º 1
0
        public void AlwaysMatch()
        {
            // the pattern can match only when called for subclass
            var applier = new SubclassDiscriminatorValueAsEnumValueApplier <Item, EntitiesTypes>();

            applier.Match(typeof(Item)).Should().Be.True();
        }
Exemplo n.º 2
0
        public void WhenOutsideTheDefinedHierarchyThenNoMatch()
        {
            var applier = new SubclassDiscriminatorValueAsEnumValueApplier <Item, EntitiesTypes>();

            applier.Match(typeof(SomethingOutOfHierarchy)).Should().Be.False();
        }
 public void WhenOutsideTheDefinedHierarchyThenNoMatch()
 {
     var applier = new SubclassDiscriminatorValueAsEnumValueApplier<Item, EntitiesTypes>();
     applier.Match(typeof(SomethingOutOfHierarchy)).Should().Be.False();
 }
 public void AlwaysMatch()
 {
     // the pattern can match only when called for subclass
     var applier = new SubclassDiscriminatorValueAsEnumValueApplier<Item, EntitiesTypes>();
     applier.Match(typeof(Item)).Should().Be.True();
 }