public override DefinitionBase GetCustomParenHost() { var listDefinitionGenerator = new ListDefinitionGenerator(); var listDefinition = listDefinitionGenerator.GenerateRandomDefinition() as ListDefinition; listDefinition.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary; return(listDefinition); }
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); }
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); }