Exemple #1
0
        public override void ConfigureDataHandler(SitecoreProperty scProperty)
        {
            SitecoreParentAttribute attr = scProperty.Attribute as SitecoreParentAttribute;

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

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


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

            //Assert
            Assert.IsNotNull(result);
        }