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);
        }
        public override ModelNode GetCustomParenHost()
        {
            var definition = new ListDefinitionGenerator().GenerateRandomDefinition(def =>
            {
                var listDef = def as ListDefinition;

                listDef.ContentTypesEnabled = true;
                listDef.TemplateType        = BuiltInListTemplateTypeId.GenericList;
            });

            var node = new ListModelNode
            {
                Value   = definition,
                Options = { RequireSelfProcessing = true }
            };

            return(node);
        }