public override DefinitionBase GetCustomParenHost()
        {
            var listDefinitionGenerator = new ListDefinitionGenerator();
            var listDefinition          = listDefinitionGenerator.GenerateRandomDefinition() as ListDefinition;

            listDefinition.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary;

            return(listDefinition);
        }
Exemple #2
0
        public override ModelNode GetCustomParenHost()
        {
            var listDefinitionGenerator = new ListDefinitionGenerator();
            var listDefinition          = listDefinitionGenerator.GenerateRandomDefinition() as ListDefinition;

            listDefinition.TemplateType = BuiltInListTemplateTypeId.WebPageLibrary;

            var node = new ListModelNode
            {
                Value = listDefinition,
            };

            return(node);
        }
        public override ModelNode GetCustomParenHost()
        {
            var listDefinitionGenerator = new ListDefinitionGenerator();
            var listDefinition          = listDefinitionGenerator.GenerateRandomDefinition() as ListDefinition;

            listDefinition.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary;

            var node = new ListModelNode
            {
                Value = listDefinition,
                //Options = { RequireSelfProcessing = false }
            };

            return(node);
        }
Exemple #4
0
        public override ModelNode GetCustomParenHost()
        {
            var listDefinitionGenerator = new ListDefinitionGenerator();
            var listDefinition          = listDefinitionGenerator.GenerateRandomDefinition() as ListDefinition;

            listDefinition.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary;

            listDefinition.IrmEnabled = true;
            listDefinition.IrmExpire  = true;

            var node = new ListModelNode
            {
                Value = listDefinition,
            };

            return(node);
        }