public static ModelNode AddRandomDocumentLibrary(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <ListDefinition>(node => { var def = node.Value as ListDefinition; def.ContentTypesEnabled = true; def.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary; action(node); })); }
public static ModelNode AddRandomPropertyBag(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <PropertyDefinition>(action)); }
public static ModelNode AddRandomWelcomePage(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <WelcomePageDefinition>(action)); }
public static ModelNode AddRandomClientWebpart(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <ClientWebPartDefinition>(action)); }
public static ModelNode AddRandomAuditSetting(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <AuditSettingsDefinition>(action)); }
public static ModelNode AddRandomUserCustomAction(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <UserCustomActionDefinition>(action)); }
public static ModelNode AddRandomWebpart(this ModelNode model, Action<ModelNode> action) { return model.AddRandomDefinition<WebPartDefinition>(action); }
public static ModelNode AddRandomSecurityGroup(this ModelNode model, Action<ModelNode> action) { return model.AddRandomDefinition<SecurityGroupDefinition>(action); }
public static ModelNode AddRandomContentType(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <ContentTypeDefinition>(action)); }
public static ModelNode AddRandomField(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <FieldDefinition>(action)); }
public static ModelNode AddRandomModuleFile(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <ModuleFileDefinition>(action)); }
public static ModelNode AddRandomListItem(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <ListItemDefinition>(action)); }
public static ModelNode AddRandomTerm(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <TaxonomyTermDefinition>(action)); }
public static ModelNode AddRandomPublishingPage(this ModelNode model, Action <ModelNode> action) { return(model.AddRandomDefinition <PublishingPageDefinition>(action)); }