Ejemplo n.º 1
0
        public override void ConfigureDataHandler(SitecoreProperty scProperty)
        {
            SitecoreChildrenAttribute attr = scProperty.Attribute as SitecoreChildrenAttribute;

            IsLazy    = attr.IsLazy;
            InferType = attr.InferType;

            base.ConfigureDataHandler(scProperty);
        }
        public void Configure_ConfigureCalled_SitecoreQueryConfigurationReturned()
        {
            //Assign
            SitecoreChildrenAttribute attr = new SitecoreChildrenAttribute();
            var propertyInfo = typeof(StubClass).GetProperty("DummyProperty");


            //Act
            var result = attr.Configure(propertyInfo) as SitecoreChildrenConfiguration;

            //Assert
            Assert.IsNotNull(result);
        }