Ejemplo n.º 1
0
        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);
            }));
        }
Ejemplo n.º 2
0
 public static ModelNode AddRandomPropertyBag(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <PropertyDefinition>(action));
 }
Ejemplo n.º 3
0
 public static ModelNode AddRandomWelcomePage(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <WelcomePageDefinition>(action));
 }
Ejemplo n.º 4
0
 public static ModelNode AddRandomClientWebpart(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <ClientWebPartDefinition>(action));
 }
Ejemplo n.º 5
0
 public static ModelNode AddRandomAuditSetting(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <AuditSettingsDefinition>(action));
 }
Ejemplo n.º 6
0
 public static ModelNode AddRandomUserCustomAction(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <UserCustomActionDefinition>(action));
 }
Ejemplo n.º 7
0
 public static ModelNode AddRandomWebpart(this ModelNode model, Action<ModelNode> action)
 {
     return model.AddRandomDefinition<WebPartDefinition>(action);
 }
Ejemplo n.º 8
0
 public static ModelNode AddRandomSecurityGroup(this ModelNode model, Action<ModelNode> action)
 {
     return model.AddRandomDefinition<SecurityGroupDefinition>(action);
 }
Ejemplo n.º 9
0
 public static ModelNode AddRandomContentType(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <ContentTypeDefinition>(action));
 }
Ejemplo n.º 10
0
 public static ModelNode AddRandomField(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <FieldDefinition>(action));
 }
Ejemplo n.º 11
0
 public static ModelNode AddRandomModuleFile(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <ModuleFileDefinition>(action));
 }
Ejemplo n.º 12
0
 public static ModelNode AddRandomListItem(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <ListItemDefinition>(action));
 }
Ejemplo n.º 13
0
 public static ModelNode AddRandomTerm(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <TaxonomyTermDefinition>(action));
 }
Ejemplo n.º 14
0
 public static ModelNode AddRandomPublishingPage(this ModelNode model, Action <ModelNode> action)
 {
     return(model.AddRandomDefinition <PublishingPageDefinition>(action));
 }