public void WhenTheNameMatchThenApplyEnumValue()
        {
            var orm = new Mock<IDomainInspector>();
            var applier = new ClassDiscriminatorValueAsEnumValueApplier<Item, EntitiesTypes>(orm.Object);

            var mapper = new Mock<IClassAttributesMapper>();

            applier.Apply(typeof(Contribute), mapper.Object);

            mapper.Verify(cm => cm.DiscriminatorValue(It.Is<int>(n => ((int)EntitiesTypes.Contribute).Equals(n))));
        }
        public void WhenTheNameNoMatchAndEnumCotainsUnknowThenApplyUnknowEnumValue()
        {
            var orm = new Mock<IDomainInspector>();
            var applier = new ClassDiscriminatorValueAsEnumValueApplier<Item, EntitiesTypes>(orm.Object);

            var mapper = new Mock<IClassAttributesMapper>();

            applier.Apply(typeof(Gallery), mapper.Object);

            mapper.Verify(cm => cm.DiscriminatorValue(It.Is<int>(n => ((int)EntitiesTypes.Unknown).Equals(n))));
        }