public void InvokeDirectMethods()
        {
            var propertyPath = new PropertyPath(null, ForClass<MyClass>.Property(x => x.MyCollection));
            var customizersHolder = new CustomizersHolder();
            var customizer = new OneToManyCustomizer(propertyPath, customizersHolder);
            var elementMapper = new Mock<IOneToManyMapper>();

            customizer.Class(typeof (Related));
            customizer.EntityName("something");
            customizer.NotFound(NotFoundMode.Ignore);

            customizersHolder.InvokeCustomizers(propertyPath, elementMapper.Object);

            elementMapper.Verify(x => x.Class(It.Is<Type>(v => v == typeof (Related))), Times.Once());
            elementMapper.Verify(x => x.EntityName(It.Is<string>(v => v == "something")), Times.Once());
            elementMapper.Verify(x => x.NotFound(It.Is<NotFoundMode>(v => v == NotFoundMode.Ignore)), Times.Once());
        }
        public void OneToMany(Action <IOneToManyMapper> mapping)
        {
            var oneToManyCustomizer = new OneToManyCustomizer(propertyPath, customizersHolder);

            mapping(oneToManyCustomizer);
        }