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(); }
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(); }